|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--PaP.RoleSessionCollection
RoleSessionCollection is a collection of all the RoleSessions for an Actor. It contains methods for adding, retrieving and removing rolesessions from the collection, as well as utility methods for searching for a specified rolesession and listing all the rolesession in the collection.
RoleSession
, Serialized FormField Summary | |
private java.util.Vector |
vRS
|
Constructor Summary | |
RoleSessionCollection()
Creates a new RoleSessionCollection. |
Method Summary | |
void |
addRoleSession(RoleSession pRS)
Adds the specified RoleSession to the collection. |
RoleSession |
findRoleSession(java.lang.String pRSId)
Searches through the collection for the specified rolesession and returns it if it is found. |
int |
getCollectionSize()
Returns the number of rolesessions in this collection. |
RoleSession |
initialRoleSession()
Returns the first rolesession in the collection. |
boolean |
lastRoleSession()
Returns wether there is only one more rolesession in the collection. |
boolean |
lastRoleSession(GAI pActor)
Returns wether the collection contains only one rolesessions where the specified Actor is either a cooperator or initiator. |
Item |
listRoleSessions()
Returns a list of all the rolesessions in the collection in the form of an Item. |
boolean |
noMoreRoleSessions()
Simple utility to check wether there are no more RoleSessions in this collection. |
boolean |
removeRoleSession(RoleSession pRS,
boolean pApo)
Removes the specified RoleSession from the collection. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private java.util.Vector vRS
Constructor Detail |
public RoleSessionCollection()
Method Detail |
public void addRoleSession(RoleSession pRS)
pRS
- The RoleSession to be added to the collection.public RoleSession findRoleSession(java.lang.String pRSId)
pRSId
- The name of the rolesession.public int getCollectionSize()
public RoleSession initialRoleSession()
public boolean lastRoleSession()
public boolean lastRoleSession(GAI pActor)
pActor
- The actor that must be part of the rolesession.public Item listRoleSessions()
public boolean noMoreRoleSessions()
public boolean removeRoleSession(RoleSession pRS, boolean pApo)
pRS
- The rolesession to be removed from the collection.Item
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |