agentland.behavior.testing
Class DefaultTestingBehaviorAgent

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--metaglue.AgentAgent
                          |
                          +--agentland.util.GoodAgent
                                |
                                +--agentland.resource.ManagedAgent
                                      |
                                      +--agentland.behavior.BehaviorAgent
                                            |
                                            +--agentland.behavior.testing.DefaultTestingBehaviorAgent
All Implemented Interfaces:
Agent, Behavior, DefaultTestingBehavior, Good, Managed, MetagluePrimitives, Remote, Serializable, Spy

public class DefaultTestingBehaviorAgent
extends BehaviorAgent
implements DefaultTestingBehavior

See Also:
Serialized Form

Inner classes inherited from class metaglue.AgentAgent
AgentAgent.Attribute
 
Field Summary
protected  LightManager lights
           
 
Fields inherited from class agentland.resource.ManagedAgent
rm, society
 
Fields inherited from class agentland.util.GoodAgent
alert, notifier
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Fields inherited from interface metaglue.Agent
ALIVE, DIED, NO_METAGLUE, NOT_RUNNING, STARTING
 
Constructor Summary
DefaultTestingBehaviorAgent()
           
 
Method Summary
 void actionLighting(Secret secret)
           
 void actionWelcome(Secret secret)
           
 void activate(Secret secret)
          Each particular behavior -- i.e., a subclass of this class -- needs to implement this method.
 
Methods inherited from class agentland.behavior.BehaviorAgent
activateAction, activateParent, addAction, addActionDependency, addChild, addEvent, addParent, addPermanentAction, deactivateParent, deleteActionDependency, getActivationEvents, getActiveParents, getAllEvents, getChildren, getDependencies, getDependencies, getDirectActiveParents, getEvents, getID, getName, getOverridenActions, getParents, getPermanentActions, isActive, isInactive, isLeaf, isListening, isOverriden, makeActive, makeDeActive, makeInactive, makeListening, makeOverriden, makeUnOverriden, nameToAction, override, overrideAction, pass, registerBevCoord, removeChild, removePermanentAction, setIDNumeric, showHashedAgentStubs, temporarilyActivateAction, undoOverride, unOver
 
Methods inherited from class agentland.resource.ManagedAgent
connect, getAlert, getNeed, isAvailable, isAvailable, reliesOn, reliesOn, replace, replace, request, request, request, requestAgent, requestAgent, resources, resourcesByAgentID, setNeed, tiedTo, yank, yank, yank
 
Methods inherited from class agentland.util.GoodAgent
addSpy, addSpy, alert, alertString, beep, error, getHistory, getHistoryElement, getPersistentMap, log, notify, removeSpy, removeSpy, resetHistory, safeRely, safeRely, safeRely, setNiceLogName, tell
 
Methods inherited from class metaglue.AgentAgent
addMonitor, alive, defrost, defrostAll, defrostBoolean, defrostInt, defrostString, fixAttribute, fixAttribute, freeze, freeze, freeze, freezeAll, freezeVar, getAgentID, getAttribute, getCatalog, getCatalogID, getDesignation, getFrozenVariables, getLogLevel, getMetaglueAgent, getMetaglueAgentID, getOccupation, getProperties, getSociety, log, log, lookupClass, obtainMetaglueAgent, obtainMetaglueAgent, obtainMetaglueAgentByName, reliesOn, reliesOnSynch, removeFrozen, replaceExceptionHandler, setFreezeName, setLogLevel, setLogName, shutdown, startAgent, startAgentOn, startAgentOn, startup, status, tiedTo, tiedTo, tiedTo, tiedTo, tieToDesignation, whereAreYou
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface agentland.behavior.Behavior
activateAction, activateParent, addActionDependency, addChild, addParent, addPermanentAction, deactivateParent, deleteActionDependency, getActivationEvents, getActiveParents, getAllEvents, getChildren, getDependencies, getDependencies, getDirectActiveParents, getEvents, getID, getName, getOverridenActions, getParents, getPermanentActions, isActive, isInactive, isLeaf, isListening, isOverriden, override, overrideAction, pass, registerBevCoord, removeChild, removePermanentAction, setIDNumeric, showHashedAgentStubs, temporarilyActivateAction, undoOverride
 
Methods inherited from interface agentland.resource.Managed
getNeed, replace, replace, resources, yank, yank
 
Methods inherited from interface agentland.util.Good
getHistory, getHistoryElement, resetHistory
 
Methods inherited from interface metaglue.Agent
addMonitor, alive, getAgentID, getMetaglueAgentID, shutdown, startup, whereAreYou
 
Methods inherited from interface agentland.util.Spy
tell
 

Field Detail

lights

protected LightManager lights
Constructor Detail

DefaultTestingBehaviorAgent

public DefaultTestingBehaviorAgent()
                            throws RemoteException
Method Detail

activate

public void activate(Secret secret)
Description copied from class: BehaviorAgent
Each particular behavior -- i.e., a subclass of this class -- needs to implement this method. This method is the Action that is called when the Behavior is Listening; it specifies how the behavior is activated (i.e., what notification(s) activate(s) the behavior).
In this class -- BehaviorAgent -- this method only logs an error message.
Overrides:
activate in class BehaviorAgent
Following copied from class: agentland.behavior.BehaviorAgent
Parameters:
secret - the Secret that gets passed to the Behavior.

actionLighting

public void actionLighting(Secret secret)

actionWelcome

public void actionWelcome(Secret secret)