|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--PaP.Actor
|
+--PaP.ApplicationActor
Superclass for all application actors, interfaces PaP suppoer functions.
| Fields inherited from class PaP.Actor |
bf, context, fh |
| Constructor Summary | |
ApplicationActor()
Creates a new ApplicationActor and invokes the superclass' constructor. |
|
| Method Summary | |
RequestResult |
actorBehaviourPlugIn(java.lang.String pRoleId)
Sends a request to the actor's Director to change the actor's behaviour by plugging in the specified Role. |
RequestResult |
actorBehaviourPlugOut()
Sends a request to the actor's Director to change the actor's behaviour by plugging out the current role. |
RequestResult |
actorCapabilities(int opType,
CapabilitySet caps)
Sends a request to the actor's Director to change the actor's set of capabilities. |
RequestResult |
actorChangeBehaviour(java.lang.String pRoleId,
java.lang.String[] pars)
Sends a request to the actor's Director to change the actor's behaviour by plugging in the specified Role. |
RequestResult |
actorEntry(RequestPars pRP)
Common entry point of ApplicationActors to invoke some activity from the outside. |
RequestResult |
actorPlay(GAI ident)
Sends a request to the specified actor to perform ActorPlay. |
RequestResult |
actorPlugIn(ActorPlugInReq request)
Sends a request to the actor's Director containing the specified ActorPlugInRequest. |
RequestResult |
actorPlugOut(RoleSession pRS)
Sends an ActorPlugOut request to the actor's Director. |
RequestPars |
anyOtherRequestType(RequestPars pRP)
This method is called every time the actorEntry() method receives a type of request that is not to be forwarded to the actor by calling applicationActorEntry(). |
abstract RequestResult |
applicationActorEntry(RequestPars pRP)
Defines the common entry point for every actor by declaring this method abstract. |
private RequestResult |
callActorChangeBehaviour(ActorPlugInReq request,
java.lang.String[] pars)
Common method used by all methods concerned with changing the actor's behaviour. |
RequestResult |
control(java.lang.String command,
java.lang.String[] pars)
Common entry point to invoke an actor's functionality. |
private void |
dbg(java.lang.String dbg)
Sends debug information to this actor's BaseFrame window, which is an interactive debug client window for several entities. |
void |
init(ActorContext pAC)
Initializes this actor by setting its actorcontext through a call to the superclass' init(). |
RequestResult |
loginUser(LoginRequest request)
Sends the specified LoginRequest to the Director. |
RequestResult |
logoutUser(java.lang.String username)
Sends a LogoutRequest to the Director for the user with the specified username. |
RequestResult |
playChangesPlugIn(Play pPlay)
Sends a request to the actor's Director to plugout the current version of the specified play and plugin same play againg. |
RequestResult |
playPlugIn(Play pPlay)
Sends a request to the Director to plugin the specified Play. |
RequestResult |
playPlugOut(java.lang.String pPlayId,
java.lang.String pPlayVer)
Sends a request to the actor's Director to plugout the specified version of the specified Play. |
private RequestResult |
requestToActor(RequestPars pRP)
Common method for most types of requests from actors to directors. |
RequestResult |
roleFigurePlugIn(RoleFigureRequest request)
Sends the specified RoleFigureRequest to the Director. |
RequestResult |
roleFigurePlugOut(RoleFigureRequest request)
Sends the specified RoleFigureRequest to the Director. |
RequestResult |
roleSessionAction(RoleSession pRS,
ApplicationMessage pMessage)
Sends the specified ApplicationMessage to another actor by using the specified RoleSession. |
RequestResult |
sessionResume(RequestPars rpars)
Sends the specified request of type SessionResume to the specified actor by calling requestToActor(). |
RequestResult |
sessionSuspend(GAI actorGAI)
Sends a SessionSuspend request to the actor with the specified GAI. |
RequestResult |
sessionUpdate(Session session)
Sends the specified Session-object to the Director in the form of a SessionUpdate request. |
RequestResult |
subscribeCancel(java.lang.String subscribeID)
Sends a request to the actor's Director that this actor wishes to cancel its subscription on report on events taking place in this PaP domain. |
RequestResult |
subscribeReport(java.lang.String[] subscribeReport)
This method is called by the Director every time the actor receives a new report from the SubscribeRequest service. |
RequestResult |
subscribeRequest(SubscribeRequest request)
Sends a request to the actor's Director that this actor wishes to subscribe for reports on when a set of events are taking place in this PaP domain. |
| Methods inherited from class PaP.Actor |
findRoleSession, getGAI, start, status, term |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public ApplicationActor()
| Method Detail |
public RequestResult actorBehaviourPlugIn(java.lang.String pRoleId)
throws java.lang.Exception
pRoleId - Identifies the new role to be assigned to the actor.
public RequestResult actorBehaviourPlugOut()
throws java.lang.Exception
pRoleId - The new Role to be assigned to the actor.
public RequestResult actorCapabilities(int opType,
CapabilitySet caps)
throws java.lang.Exception
opType - Specifies 'Set', 'Add' or 'Remove' as operation type.caps - The set of capabilities to add, set or remove.
public RequestResult actorChangeBehaviour(java.lang.String pRoleId,
java.lang.String[] pars)
throws java.lang.Exception
pRoleId - Identifies the new role to be assigned to the actor.pars - The data withdrawn from the existing to the upgraded actor.
public RequestResult actorEntry(RequestPars pRP)
throws java.lang.Exception
pRP - Parameters for the activity this actorEntry will attempt to
carry out.java.lang.Exception -
public RequestResult actorPlay(GAI ident)
throws java.lang.Exception
ident - The GAI of the actor to request for ActorPlay.
public RequestResult actorPlugIn(ActorPlugInReq request)
throws java.lang.Exception
request - ActorPlugInReq containing application specific
parameters for the request.
public RequestResult actorPlugOut(RoleSession pRS)
throws java.lang.Exception
pRS - This RoleSession specifies which actor to be plugged out.
public RequestPars anyOtherRequestType(RequestPars pRP)
throws java.lang.Exception
pRP - The received request.Exception. -
public abstract RequestResult applicationActorEntry(RequestPars pRP)
throws java.lang.Exception
rp - Parameters for the activity this actorEntry will attempt to
carry out.
private RequestResult callActorChangeBehaviour(ActorPlugInReq request,
java.lang.String[] pars)
throws java.lang.Exception
request - An ActorPlugInReq containing configuration information
regarding the request.pars - Set of information to follow an ActorChangeBehaviour request.
public RequestResult control(java.lang.String command,
java.lang.String[] pars)
throws java.lang.Exception
command - Name of the command to perform.args - Additional arguments for the specified command.Exception. - public void init(ActorContext pAC)
init in class ActorpAC - The actor's ActorContext.
public RequestResult loginUser(LoginRequest request)
throws java.lang.Exception
request - The LoginRequest to be sent.java.lang.Exception - if something goes wrong.
public RequestResult logoutUser(java.lang.String username)
throws java.lang.Exception
username - The username of the user wanting to logout.java.lang.Exception - if something goes wrong.
public RequestResult playChangesPlugIn(Play pPlay)
throws java.lang.Exception
pPlay - The play to be plugged in.
public RequestResult playPlugIn(Play pPlay)
throws java.lang.Exception
pPlay - The play to be plugged in.
public RequestResult playPlugOut(java.lang.String pPlayId,
java.lang.String pPlayVer)
throws java.lang.Exception
pPlayId - Specifies the Play to be plugged out.pPlayVer - Specifies which version of the Play to be plugged out.
A null value means that all versions of the Play should be plugged
out.
public RequestResult roleFigurePlugIn(RoleFigureRequest request)
throws java.lang.Exception
request - The RoleFigureRequest to be sent.java.lang.Exception - if something goes wrong.
public RequestResult roleFigurePlugOut(RoleFigureRequest request)
throws java.lang.Exception
request - The RoleFigureRequest to be sent.java.lang.Exception - if something goes wrong.
public RequestResult roleSessionAction(RoleSession pRS,
ApplicationMessage pMessage)
throws java.lang.Exception
pRS - The role session to use. It will determine who will be the
receiving actor.pMessage - The application specific message to send.
public RequestResult sessionResume(RequestPars rpars)
throws java.lang.Exception
rpars - The request to be sent.
public RequestResult sessionSuspend(GAI actorGAI)
throws java.lang.Exception
actorGAI - The GAI of the actor the request is sent to.
public RequestResult sessionUpdate(Session session)
throws java.lang.Exception
session - The Session-object to be updated.
public RequestResult subscribeCancel(java.lang.String subscribeID)
throws java.lang.Exception
subscribeID - Identification of the actor's subscription. This is
give when the actor sends a SubscribeRequest.
public RequestResult subscribeReport(java.lang.String[] subscribeReport)
throws java.lang.Exception
subscribeReport - String-array that contains information about the
set of events that has occured and is being reported.
public RequestResult subscribeRequest(SubscribeRequest request)
throws java.lang.Exception
request - Specifies the type of subscription request for the actor.private void dbg(java.lang.String dbg)
dbg - The debug information to be sent.
private RequestResult requestToActor(RequestPars pRP)
throws java.lang.Exception
pRP - The requestparameters.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||