PaP
Class PlayingBase

java.lang.Object
  |
  +--PaP.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
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, 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