PaP
Class DirectorActor

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

public abstract class DirectorActor
extends Actor
implements java.io.Serializable

DirectorActor is an abstract class that extends Actor. It defines the abstract method directorActorEntry() that all classes who implements the functionality for a Director must implement. DirectorActor performs the same role for Directors as ApplicationActor performs for Applications.

See Also:
Actor, Serialized Form

Fields inherited from class PaP.Actor
bf, context, fh
 
Constructor Summary
DirectorActor()
          Creates a new DirectorActor.
 
Method Summary
 RequestResult actorEntry(RequestPars pRP)
          Common entry point for all requests to an actor.
abstract  RequestResult directorActorEntry(RequestPars rp)
          The following method is defined abstract and therefore MUST be implemented by all Director-implementations.
 void init(ActorContext pAC)
          Initializes the DirectorActor by setting the actor's ActorContext and by adding some commands to the actor's baseframe.
 
Methods inherited from class PaP.Actor
findRoleSession, getGAI, start, status, term
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 
Methods inherited from interface PaP.ControlInterface
control
 

Constructor Detail

DirectorActor

public DirectorActor()
Creates a new DirectorActor.
Method Detail

actorEntry

public RequestResult actorEntry(RequestPars pRP)
                         throws java.lang.Exception
Common entry point for all requests to an actor. The requests are sent from the actor's PAS. All it does is call the abstract method directorActorEntry() with the same parameter and then returns whatever is returned from directorActorEntry(). This way all Directors must implement directorActorEntry() and it is the only way to access it.
Parameters:
pRP - RequestPars indicating the type of request with a set of parameters.
Returns:
RequestResult indicating wether the request was handled successfully or not.
Throws:
java.lang.Exception -  

init

public void init(ActorContext pAC)
Initializes the DirectorActor by setting the actor's ActorContext and by adding some commands to the actor's baseframe.
Overrides:
init in class Actor
Following copied from class: PaP.Actor
Parameters:
pContext - The context of this Actor.

directorActorEntry

public abstract RequestResult directorActorEntry(RequestPars rp)
                                          throws java.lang.Exception
The following method is defined abstract and therefore MUST be implemented by all Director-implementations. It is called by actorEntry() and is the only entry to a Director, meaning all request are received through this method.
Parameters:
pRP - RequestPars indicating the type of request with a set of parameters.
Returns:
RequestResult indicating wether the request was handled successfully or not.
Throws:
java.lang.Exception -