MicroTAPAS
Class PlayingBase

java.lang.Object
  |
  +--MicroTAPAS.PlayingBase
All Implemented Interfaces:
java.io.Serializable

public class PlayingBase
extends java.lang.Object
implements java.io.Serializable

This defines the playing base service

See Also:
Serialized Form

Field Summary
private  java.util.Vector vAPIR
          Actors plugged in earlier (their plug in requests)
 
Constructor Summary
PlayingBase()
          Constructor to initialize data fields
 
Method Summary
 void actorRegister(ActorPlugInReq request)
          Registers a plug in request
private  ActorPlugInReq actorRegistryGet(GAI actor)
          This is an exact copy og actorRegistryRemove, except for the registry is not removed
 ActorPlugInReq actorRegistryRemove(GAI actor)
          Removes a plug in request that belongs to a given GAI address
 ActorPlugInReq[] actorToPlugIn(ActorPlugInReq request)
          Checks content of playing base to determine if existing actor
 boolean capabilityUpdate(GAI actor, int request, CapabilitySet caps)
          To perform update of the capability set for an actor registry
 boolean empty()
          Check if existing actors registered
 Item listActors()
          Status report of this PlayingBase object
 boolean terminalMove(java.lang.String oldNode, java.lang.String newNode)
          Updates all registered actors to reflect a move by a terminal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vAPIR

private java.util.Vector vAPIR
Actors plugged in earlier (their plug in requests)

Constructor Detail

PlayingBase

public PlayingBase()
Constructor to initialize data fields

Method Detail

empty

public boolean empty()
Check if existing actors registered

Returns:
true if existing actors registered, false else

listActors

public Item listActors()
Status report of this PlayingBase object

Returns:
PaP conform Item hierarchy of status information of this object's contained data

actorToPlugIn

public ActorPlugInReq[] actorToPlugIn(ActorPlugInReq request)
Checks content of playing base to determine if existing actor

Returns:
All actor's plug in requests that can be plugged into

actorRegistryRemove

public ActorPlugInReq actorRegistryRemove(GAI actor)
Removes a plug in request that belongs to a given GAI address

Parameters:
actor - GAI address of the actor to be removed
Returns:
The removed plug in request

actorRegistryGet

private ActorPlugInReq actorRegistryGet(GAI actor)
This is an exact copy og actorRegistryRemove, except for the registry is not removed

Parameters:
actor - GAI address of the actor to be found
Returns:
The plug in request that was found

actorRegister

public void actorRegister(ActorPlugInReq request)
Registers a plug in request

Parameters:
request - The request to be registered

capabilityUpdate

public boolean capabilityUpdate(GAI actor,
                                int request,
                                CapabilitySet caps)
To perform update of the capability set for an actor registry

Parameters:
actor - The actor requested to update
request - The type of capability update to perform
caps - The capability set to update
Returns:
true if successful update, false if update fails

terminalMove

public boolean terminalMove(java.lang.String oldNode,
                            java.lang.String newNode)
Updates all registered actors to reflect a move by a terminal

Parameters:
oldNode - The old node of the terminal
newNode - The new node of the terminal
Returns:
Success indicator


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.