MicroTAPAS
Class RoleSession

java.lang.Object
  |
  +--MicroTAPAS.RoleSession
All Implemented Interfaces:
java.io.Serializable

public class RoleSession
extends java.lang.Object
implements java.io.Serializable

Implementation of Role Session

See Also:
Serialized Form

Field Summary
 GAI cooperator
          RoleSession cooperator
 GAI initiator
          RoleSession initiator
 java.lang.String roleSessionId
          RoleSession identifier
 
Constructor Summary
RoleSession(RoleSession rs)
          Constructor to make a new object from an old RoleSession
RoleSession(java.lang.String pRSI, GAI pInitiator, GAI pCooperator)
          Constructor to fill data field values
 
Method Summary
 void actorMove(GAI oldGAI, GAI newGAI)
          Method to update this RoleSession when an actor is moved
 boolean equalTo(RoleSession rs)
          Tests equality of this RoleSession to another one
 void terminalMove(java.lang.String oldNode, java.lang.String newNode)
          Method to update this RoleSession when a terminal is moved
 java.lang.String toString()
          Simple utility to convert all data field values into one String for easy Debug purposes
static java.lang.String toString(RoleSession obj)
          Simple utility to convert all data field values into one String for easy Debug purposes
 boolean validate(int level)
          Validation of the RoleSession object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

roleSessionId

public java.lang.String roleSessionId
RoleSession identifier


initiator

public GAI initiator
RoleSession initiator


cooperator

public GAI cooperator
RoleSession cooperator

Constructor Detail

RoleSession

public RoleSession(java.lang.String pRSI,
                   GAI pInitiator,
                   GAI pCooperator)
Constructor to fill data field values


RoleSession

public RoleSession(RoleSession rs)
Constructor to make a new object from an old RoleSession

Method Detail

toString

public java.lang.String toString()
Simple utility to convert all data field values into one String for easy Debug purposes

Overrides:
toString in class java.lang.Object
Returns:
String form of the data field values

toString

public static java.lang.String toString(RoleSession obj)
Simple utility to convert all data field values into one String for easy Debug purposes

Parameters:
obj - Object to convert - if existing
Returns:
String form of the data field values

validate

public boolean validate(int level)
Validation of the RoleSession object.

Parameters:
level - If =1 check no null for all parameters
Returns:
true if valid, false else

equalTo

public boolean equalTo(RoleSession rs)
Tests equality of this RoleSession to another one

Parameters:
rs - The other RoleSession to test for equality
Returns:
true if this RoleSession is equal to rs

terminalMove

public void terminalMove(java.lang.String oldNode,
                         java.lang.String newNode)
Method to update this RoleSession when a terminal is moved

Parameters:
oldNode - The old node
newNode - The new node

actorMove

public void actorMove(GAI oldGAI,
                      GAI newGAI)
Method to update this RoleSession when an actor is moved

Parameters:
oldGAI - The actors old GAI