PaP
Class ActorPlugInReq

java.lang.Object
  |
  +--PaP.ActorPlugInReq
All Implemented Interfaces:
java.io.Serializable

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

The set of parameters specified by actors when request for ActorPlugIn (Section 3.5 of [1])

See Also:
Serialized Form

Field Summary
 GAI location
          Preferred location of new actor -or- location of existing actor; after plugIn: location of cooperator.
 Play play
          Play that the role belongs to, Director fills this by looking up role in repertoire base
 Role role
          Role that the new actor will play
 CapabilitySet rqCaps
          The set of actor capabilities required.
 CapabilitySet rsCaps
          The set of actor capabilities asked for, if possible
 
Constructor Summary
ActorPlugInReq(GAI pLocation, Role pRole)
          Deprecated. Only kept for backward compatibility
ActorPlugInReq(GAI pLocation, Role pRole, CapabilitySet rqc, CapabilitySet rsc)
          Constructor only to fill data fields.
 
Method Summary
 java.lang.String toString()
          Simple utility to convert data field values into one string for debug purposes.
static java.lang.String toString(ActorPlugInReq obj)
          Simple utility to convert data field values into one string for debug purposes.
 boolean validate(int level)
          Validation of a request specification
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

location

public GAI location
Preferred location of new actor -or- location of existing actor; after plugIn: location of cooperator.

role

public Role role
Role that the new actor will play

play

public Play play
Play that the role belongs to, Director fills this by looking up role in repertoire base

rqCaps

public CapabilitySet rqCaps
The set of actor capabilities required. Also used to keep current set of capabilities for actor when stored in Playing base.

rsCaps

public CapabilitySet rsCaps
The set of actor capabilities asked for, if possible
Constructor Detail

ActorPlugInReq

public ActorPlugInReq(GAI pLocation,
                      Role pRole)
Deprecated. Only kept for backward compatibility

Constructor only to fill data fields.

ActorPlugInReq

public ActorPlugInReq(GAI pLocation,
                      Role pRole,
                      CapabilitySet rqc,
                      CapabilitySet rsc)
Constructor only to fill data fields.
Method Detail

toString

public java.lang.String toString()
Simple utility to convert data field values into one string for debug purposes.
Overrides:
toString in class java.lang.Object
Returns:
The string containing data field values

toString

public static java.lang.String toString(ActorPlugInReq obj)
Simple utility to convert data field values into one string for debug purposes.
Returns:
The string containing data field values

validate

public boolean validate(int level)
Validation of a request specification
Returns:
true means ok, else invalid