MicroTAPAS
Class MicroDirector1

java.lang.Object
  |
  +--MicroTAPAS.MicroActor
        |
        +--MicroTAPAS.MicroDirectorActor
              |
              +--MicroTAPAS.MicroDirector1
All Implemented Interfaces:
ControlInterface, MicroActorInterface, java.io.Serializable

public class MicroDirector1
extends MicroDirectorActor
implements MicroActorInterface, ControlInterface, java.io.Serializable

Implementation of a Director for MicroTAPAS Dynamic Basic Support. Based almost entirely on PaP.Director1.java

See Also:
Serialized Form

Field Summary
protected static boolean DEBUG
          Determines whether debug info to be sent to debug-server
private  PlayingBase pb
          Playing base for the director, holds active Actors in the domain it manages
private  RepertoireBase rb
          Repertoire base for the director, holds plugged in plays and their manuscripts
private  SubscribeCollection sc
          Subscription management, requested by actors and served by director
private static int unique
          Sequence of integers for unique naming of Actors and RoleSessions
 
Fields inherited from class MicroTAPAS.MicroActor
bf, context, debug, fh, properties
 
Constructor Summary
MicroDirector1()
           
 
Method Summary
private  RequestResult actorPlugOut(RequestPars pRP, GAI pActor)
          Constructs an ActorPlugOut request, sends it to PNES and does administration if PlugOut confirmed by Actor
 void cleanUp()
          Gives this TAPAS instance a chance to clean up when the DebugWindow is closed.
 RequestResult control(java.lang.String pCommand, java.lang.String[] pPars)
          Controls the Director, invokes its functionality, BaseFrame input field can trigger it
 RequestResult directorActorEntry(RequestPars pRP)
          Entry point for Director from outside
static int getUnique()
          Allocation of a unique number within this actor
 RequestResult sendToPNES(RequestPars pRP)
          Method to send requests to the parent entity.
 void start()
          To leave constructor empty, this method is used to fill data field values.
 Item status()
          Status report of Director in Item hierarchy of information elements
 
Methods inherited from class MicroTAPAS.MicroDirectorActor
actorEntry, init
 
Methods inherited from class MicroTAPAS.MicroActor
findRoleSession, getGAI, term, terminalMove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface MicroTAPAS.MicroActorInterface
actorEntry, term
 

Field Detail

DEBUG

protected static final boolean DEBUG
Determines whether debug info to be sent to debug-server

See Also:
Constant Field Values

rb

private RepertoireBase rb
Repertoire base for the director, holds plugged in plays and their manuscripts


pb

private PlayingBase pb
Playing base for the director, holds active Actors in the domain it manages


sc

private SubscribeCollection sc
Subscription management, requested by actors and served by director


unique

private static int unique
Sequence of integers for unique naming of Actors and RoleSessions

Constructor Detail

MicroDirector1

public MicroDirector1()
Method Detail

start

public void start()
To leave constructor empty, this method is used to fill data field values.

Specified by:
start in interface MicroActorInterface
Overrides:
start in class MicroActor

sendToPNES

public RequestResult sendToPNES(RequestPars pRP)
                         throws java.lang.Exception
Method to send requests to the parent entity.

Parameters:
pRP - TAPAS-syle request parameters.
Returns:
TAPAS-style request result.
java.lang.Exception

directorActorEntry

public RequestResult directorActorEntry(RequestPars pRP)
                                 throws java.lang.Exception
Entry point for Director from outside

Specified by:
directorActorEntry in class MicroDirectorActor
Parameters:
pRP - TAPAS-syle request parameters.
Returns:
TAPAS-style request result.
java.lang.Exception

actorPlugOut

private RequestResult actorPlugOut(RequestPars pRP,
                                   GAI pActor)
                            throws java.lang.Exception
Constructs an ActorPlugOut request, sends it to PNES and does administration if PlugOut confirmed by Actor

Parameters:
pRP - The original ActorPlugOut request parameters
pActor - The subject actor of the plug out request
Returns:
PaP style result indication of the operation
java.lang.Exception

control

public RequestResult control(java.lang.String pCommand,
                             java.lang.String[] pPars)
Controls the Director, invokes its functionality, BaseFrame input field can trigger it

Specified by:
control in interface ControlInterface
Parameters:
pCommand - First command line argument, used to denote a command name
Returns:
PaP style result indication of the operation

status

public Item status()
Status report of Director in Item hierarchy of information elements

Overrides:
status in class MicroActor
Returns:
Hierarchy of Item information elements

getUnique

public static int getUnique()
Allocation of a unique number within this actor

Returns:
Unique number

cleanUp

public void cleanUp()
Gives this TAPAS instance a chance to clean up when the DebugWindow is closed.

Specified by:
cleanUp in interface ControlInterface


The Telematics Architecture for Plug-and-Play Systems (TAPAS) is a research project undertaken by the Norwegian University of Science and Technology's Telematics department which aims at developing an architecture for network-based service systems with a) flexibility and adaptability, b) robustness and survivability, and c) QoS awareness and resource control.

More information can be found at the project's homepage at http://tapas.item.ntnu.no and the project manager, Professor Finn Arve Aagesen, can be reached at finn.arve.aagesen@item.ntnu.no.