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
|
Field Summary |
(package private) static int |
agentCount
|
(package private) int |
agentSerial
|
(package private) java.util.Set<User> |
users
element type: User |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
agentCount
static transient int agentCount
agentSerial
transient int agentSerial
users
java.util.Set<User> users
- element type: User
MemoryAgent
public MemoryAgent(Role role)
getRole
public Role getRole()
- Specified by:
getRole in interface IAgent
addUser
public void addUser(User user)
- Specified by:
addUser in interface IAgent
removeUser
public void removeUser(User user)
- Specified by:
removeUser in interface IAgent
getUserArray
public User[] 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
Copyright 2004-2004-2006 TELS Center. All Rights Reserved.