MicroTAPAS
Class ActorContext

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

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

Context data for all ApplicationActors and DirectorActors

See Also:
Serialized Form

Field Summary
 ActorPlugInReq apir
          Original ActorPlugInRequest
 CapabilitySet capSet
          The actor's current set of capabilities (from file)
 java.lang.String DSL
          DebugServerLocation, takes the simple form of a IP node address
 GAI hI
          HomeInterface, GAI value pointing to the assigned Director of the Actor
 java.lang.String ID
          Unique ID for this actor
static MicroPNES microPNES
          GAI value pointing to the PNES of the Actor
 GAI parent
          GAI value pointing to the creator Actor, i.e. sender of it's ActorPlugIn request
 Play play
          Information about the actor's play definition
 java.util.Hashtable props
          An actor's properties (from file)
 Role role
          Information about the actor's role definition
 RoleSessionCollection rsc
          Vector of RoleSessions this Actor holds
 GAI self
          GAI value pointing to the very same Actor
 
Constructor Summary
ActorContext(ActorContext ac)
          Constructor to create a copy of the supplied ActorContext.
ActorContext(GAI pGAI, GAI pParent, MicroPNES pPNES, GAI pHI, java.lang.String pDSL, CapabilitySet caps, Play pPlay, Role pRole, java.util.Hashtable pProps, java.lang.String pID)
          Constructor to fill data.
 
Method Summary
 Item status()
          Status reporting utility to convert all data field values into one Item hierarchy
 boolean terminalMove(java.lang.String oldNode, java.lang.String newNode)
          Updates all relevant varables when the terminal has moved from one domain to another.
 java.lang.String toString()
          Overloaded toString() method.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

self

public GAI self
GAI value pointing to the very same Actor


parent

public GAI parent
GAI value pointing to the creator Actor, i.e. sender of it's ActorPlugIn request


microPNES

public static MicroPNES microPNES
GAI value pointing to the PNES of the Actor


hI

public GAI hI
HomeInterface, GAI value pointing to the assigned Director of the Actor


DSL

public java.lang.String DSL
DebugServerLocation, takes the simple form of a IP node address


rsc

public RoleSessionCollection rsc
Vector of RoleSessions this Actor holds


capSet

public CapabilitySet capSet
The actor's current set of capabilities (from file)


play

public Play play
Information about the actor's play definition


role

public Role role
Information about the actor's role definition


apir

public ActorPlugInReq apir
Original ActorPlugInRequest


ID

public java.lang.String ID
Unique ID for this actor


props

public java.util.Hashtable props
An actor's properties (from file)

Constructor Detail

ActorContext

public ActorContext(GAI pGAI,
                    GAI pParent,
                    MicroPNES pPNES,
                    GAI pHI,
                    java.lang.String pDSL,
                    CapabilitySet caps,
                    Play pPlay,
                    Role pRole,
                    java.util.Hashtable pProps,
                    java.lang.String pID)
Constructor to fill data.

Parameters:
pGAI - This actors GAI.
pParent - Address of parent GAI (initiator of this actor).
pPNES - Reference to the local MicroPNES entity.
pHI - Address of home interface (Director).
pDSL - DebugServerLocation, address of debug server.
caps - The actors required capabilities.
pPlay - The play.
pRole - The actor role.
pProps - The actor properties (from file).

ActorContext

public ActorContext(ActorContext ac)
Constructor to create a copy of the supplied ActorContext.

Parameters:
ac - The ActorContext to copy values from.
Method Detail

terminalMove

public boolean terminalMove(java.lang.String oldNode,
                            java.lang.String newNode)
Updates all relevant varables when the terminal has moved from one domain to another. Called by MobilitySupportActor.

Parameters:
oldNode - The old node.
newNode - The new node.
Returns:
Success indicator.

toString

public java.lang.String toString()
Overloaded toString() method.

Overrides:
toString in class java.lang.Object
Returns:
String representation of this object.

status

public Item status()
Status reporting utility to convert all data field values into one Item hierarchy

Returns:
Item form of the data field values