net.sf.sail.common.persistance.memory
Class MemoryAgent
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MemoryAgent
public MemoryAgent(Role role,
AgentUuid id)
MemoryAgent
public MemoryAgent(Role role)
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.