MicroTAPAS
Class MicroActor

java.lang.Object
  |
  +--MicroTAPAS.MicroActor
All Implemented Interfaces:
ControlInterface, MicroActorInterface, java.io.Serializable
Direct Known Subclasses:
MicroApplicationActor, MicroDirectorActor, MobilitySupportActor

public abstract class MicroActor
extends java.lang.Object
implements MicroActorInterface, ControlInterface, java.io.Serializable

Abstract class for both ApplicatioActors and DirectorActors

See Also:
Serialized Form

Field Summary
protected  MicroBaseFrame bf
          BaseFrame for all ApplicationActors and DirectorActors
 ActorContext context
          Context data for this Actor
 Debug debug
          Debug
protected  FaultHandler fh
          Fault handler for actor
 java.util.Properties properties
          System properties
 
Constructor Summary
MicroActor()
           
 
Method Summary
protected  RoleSession findRoleSession(java.lang.String pRSId)
          This method simply passes on to context.rsc.findRoleSession just to be transparent to Applications.
 java.lang.String getGAI()
          Simple utility to convert GAI value to "Actor://node/pss/name" formatted String
 void init(ActorContext pContext)
          To leave constructor empty, this method is used to initialize Object data
 void start()
          Start method from the ActorInterface, here only to send Debug info
 Item status()
          Status report of the Actor in Item hierarchy of information element
 void term()
          Terminate method from the ActorInterface.
 void terminalMove(java.lang.String oldNode, java.lang.String newNode)
          Method to update all relevant properties once a terminal has moved.
 
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
 
Methods inherited from interface MicroTAPAS.ControlInterface
cleanUp, control
 

Field Detail

bf

protected MicroBaseFrame bf
BaseFrame for all ApplicationActors and DirectorActors


context

public ActorContext context
Context data for this Actor


fh

protected FaultHandler fh
Fault handler for actor


properties

public java.util.Properties properties
System properties


debug

public Debug debug
Debug

Constructor Detail

MicroActor

public MicroActor()
Method Detail

init

public void init(ActorContext pContext)
To leave constructor empty, this method is used to initialize Object data

Parameters:
pContext - context data for this actor

terminalMove

public void terminalMove(java.lang.String oldNode,
                         java.lang.String newNode)
Method to update all relevant properties once a terminal has moved. Called by MicroActorManager.

Parameters:
oldNode - The old node
newNode - The new node

status

public Item status()
Status report of the Actor in Item hierarchy of information element

Returns:
Whatever context.status() returns

getGAI

public java.lang.String getGAI()
Simple utility to convert GAI value to "Actor://node/pss/name" formatted String

Returns:
linearized String-form of GAI fields

start

public void start()
Start method from the ActorInterface, here only to send Debug info

Specified by:
start in interface MicroActorInterface

term

public void term()
Terminate method from the ActorInterface. Closes the debug window

Specified by:
term in interface MicroActorInterface

findRoleSession

protected RoleSession findRoleSession(java.lang.String pRSId)
This method simply passes on to context.rsc.findRoleSession just to be transparent to Applications.

Returns:
Simply returns whatever context.rsc.findRoleSession returns


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.