|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--MicroTAPAS.RoleSessionCollection
Collection of Role Sessions an actor holds for Actor class
| Constructor Summary | |
RoleSessionCollection()
Constructor |
|
RoleSessionCollection(RoleSessionCollection rsc)
Constructor. |
|
| Method Summary | |
boolean |
actorMove(GAI oldGAI,
GAI newGAI)
Updates all RoleSessions to reflect an actor move |
void |
addRoleSession(RoleSession pRS)
Adds the specified RoleSession to the Collection |
RoleSession |
findRoleSession(java.lang.String pRSId)
Finds a RoleSession specified by its name String |
java.util.Vector |
getAllCooperators(GAI init)
Method to retreive all the cooperting actors of a particular actor. |
java.util.Vector |
getAllGAI()
Method to get all the GAI's from the collection as a Vector of String representation of the GAI's. |
java.util.Vector |
getAllRS()
Method to get all the RoleSessions from the collection. |
java.util.Vector |
getAllRSID()
Method to get all the RoleSessionId's from the collection as a Vector of Strings. |
RoleSession |
getLastRoleSession()
Finds the last added rolesession. |
int |
getNumRoleSessions()
Returns the size of this RoleSessionCollection. |
RoleSession |
initialRoleSession()
Method to find and return the initial Role Session |
boolean |
isLastRoleSession()
Method to check if there is only one RoleSession left in collection. |
boolean |
isLastRoleSession(GAI pActor)
Method to check if there is one or less RoleSessions left for the given actor. |
boolean |
lastRoleSession()
Deprecated. Replaced by isLastRoleSession() |
boolean |
lastRoleSession(GAI pActor)
Deprecated. Replaced by isLastRoleSession(GAI) |
Item |
listRoleSessions()
List all RoleSessions in this Collection |
boolean |
noMoreRoleSessions()
Simple utility to check wheter there are no more RoleSessions in this Collection |
boolean |
removeRoleSession(RoleSession pRS,
boolean pApo)
Removes the specified RoleSession from the Collection |
boolean |
terminalMove(java.lang.String oldNode,
java.lang.String newNode)
Updates all RoleSessions to reflect a move by a terminal |
java.lang.String |
toString()
Overloaded toString() method. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public RoleSessionCollection()
public RoleSessionCollection(RoleSessionCollection rsc)
| Method Detail |
public void addRoleSession(RoleSession pRS)
public boolean removeRoleSession(RoleSession pRS,
boolean pApo)
public boolean noMoreRoleSessions()
public RoleSession findRoleSession(java.lang.String pRSId)
pRSId - The name of the RoleSession to be found
public RoleSession initialRoleSession()
public boolean lastRoleSession(GAI pActor)
isLastRoleSession(GAI)
pActor - The GAI of the actor.
public boolean isLastRoleSession(GAI pActor)
pActor - The GAI of the actor.
public boolean lastRoleSession()
isLastRoleSession()
public boolean isLastRoleSession()
public RoleSession getLastRoleSession()
public int getNumRoleSessions()
public boolean terminalMove(java.lang.String oldNode,
java.lang.String newNode)
oldNode - The old node of the terminalnewNode - The new node of the terminal
public boolean actorMove(GAI oldGAI,
GAI newGAI)
oldGAI - The old GAI of the actornewGAI - The new GAI of the actor
public java.util.Vector getAllCooperators(GAI init)
init - The initiating actor.
public java.util.Vector getAllGAI()
public java.util.Vector getAllRS()
public java.util.Vector getAllRSID()
public java.lang.String toString()
toString in class java.lang.Objectpublic Item listRoleSessions()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||