PaP
Class Actor

java.lang.Object
  |
  +--PaP.Actor
All Implemented Interfaces:
ActorInterface, ControlInterface, java.rmi.Remote, java.io.Serializable
Direct Known Subclasses:
ApplicationActor, DirectorActor

public abstract class Actor
extends java.lang.Object
implements ActorInterface, ControlInterface, java.io.Serializable

Actor is the core representative of the whole theater concept. It is the abstract superclass of both ApplicationActor and DirectorActor.

See Also:
ApplicationActor, DirectorActor, ActorInterface, ControlInterface, Serialized Form

Field Summary
protected  BaseFrame bf
          Reference to an actor's BaseFrame.
 ActorContext context
          Context data for this Actor
protected  FaultHandler fh
          Fault handler for actor
 
Constructor Summary
Actor()
          Creates a new Actor.j
 
Method Summary
protected  RoleSession findRoleSession(java.lang.String pRSId)
          Convenient method to search the actor's context for the specified role session.
 java.lang.String getGAI()
          Returns the GAI of this actor in the form of a string.
 void init(ActorContext pContext)
          Initializes the Actor and sets the actor context to the specified context.
 void start()
          Implementation of the start method from the ActorInterface that does nothing.
 Item status()
          Returns a status report of this actor in the form of an Item instance.
 void term()
          Terminates this actor's baseframe.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 
Methods inherited from interface PaP.ActorInterface
actorEntry
 
Methods inherited from interface PaP.ControlInterface
control
 

Field Detail

bf

protected BaseFrame bf
Reference to an actor's BaseFrame. A BaseFrame is an interactive debug client window that the entities PNES, PAS, Actor, and DebugServer.

context

public ActorContext context
Context data for this Actor

fh

protected FaultHandler fh
Fault handler for actor
Constructor Detail

Actor

public Actor()
Creates a new Actor.j
Method Detail

findRoleSession

protected RoleSession findRoleSession(java.lang.String pRSId)
Convenient method to search the actor's context for the specified role session. It simply passes on to context.rsc.findRoleSession in order to be transparent to Applications.
Returns:
Returns a reference to the rolesession with the specified ID if it is found, else it returns null.

getGAI

public java.lang.String getGAI()
Returns the GAI of this actor in the form of a string. The string is of the form 'Actor:////'.
Returns:
The actor's GAI.

init

public void init(ActorContext pContext)
Initializes the Actor and sets the actor context to the specified context. This method is provided to leave the constructor empty.
Parameters:
pContext - The context of this Actor.

start

public void start()
Implementation of the start method from the ActorInterface that does nothing.
Specified by:
start in interface ActorInterface

status

public Item status()
Returns a status report of this actor in the form of an Item instance. An Item is an information element that can contain other items in a hierarchy.
Returns:
The status of this actor.

term

public void term()
Terminates this actor's baseframe. Common termination point for all actors.
Specified by:
term in interface ActorInterface