net.sf.sail.common.persistance.memory
Class MemoryAgent

java.lang.Object
  extended by net.sf.sail.common.persistance.memory.MemoryAgent
All Implemented Interfaces:
IAgent

public class MemoryAgent
extends java.lang.Object
implements IAgent

A set of users, in a given role, that are responsible for some events or data.

Author:
turadg

Constructor Summary
MemoryAgent(Role role)
           
MemoryAgent(Role role, AgentUuid id)
           
 
Method Summary
 void addUser(UserUuid user)
           
 AgentUuid getAgentId()
          This is a uuid for the agent.
 java.lang.String getAgentToken()
           
 Role getRole()
           
 UserUuid[] getUserArray()
           
 void removeUser(UserUuid user)
           
 void setAgentToken(java.lang.String agentToken)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MemoryAgent

public MemoryAgent(Role role,
                   AgentUuid id)

MemoryAgent

public MemoryAgent(Role role)
Method Detail

getRole

public Role getRole()
Specified by:
getRole in interface IAgent

addUser

public void addUser(UserUuid user)
Specified by:
addUser in interface IAgent

removeUser

public void removeUser(UserUuid user)
Specified by:
removeUser in interface IAgent

getUserArray

public UserUuid[] getUserArray()
Specified by:
getUserArray in interface IAgent

toString

public java.lang.String toString()
Specified by:
toString in interface IAgent
Overrides:
toString in class java.lang.Object

getAgentId

public AgentUuid getAgentId()
Description copied from interface: IAgent
This is a uuid for the agent. It is currently only used to map annotations to particular agents.

Specified by:
getAgentId in interface IAgent
Returns:

getAgentToken

public java.lang.String getAgentToken()

setAgentToken

public void setAgentToken(java.lang.String agentToken)


Copyright © 2004-2008 TELS Center. All Rights Reserved.