springs.tests
Class SpringsHelloAgent

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--springs.agent.SpringsAgent_RMIImpl
                          |
                          +--springs.tests.SpringsHelloAgent
All Implemented Interfaces:
ISpringsAgent_RMIImpl, ISpringsHelloAgent, java.rmi.Remote, java.io.Serializable, SpringsAgent

public class SpringsHelloAgent
extends SpringsAgent_RMIImpl
implements ISpringsHelloAgent

A Springs agent that writes a "hello world" in the standard output.

Author:
Sergio Ilarri Artigas
See Also:
Serialized Form

Field Summary
 
Fields inherited from class springs.agent.SpringsAgent_RMIImpl
_numberOfJumps
 
Fields inherited from class java.rmi.server.UnicastRemoteObject
 
Fields inherited from class java.rmi.server.RemoteServer
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Fields inherited from interface springs.agent.SpringsAgent
METHOD_MESSAGE_RECEPTION
 
Fields inherited from interface springs.agent.ISpringsAgent_RMIImpl
ADD_OBSERVER_METHOD, REMOVE_OBSERVER_METHOD
 
Constructor Summary
SpringsHelloAgent()
           
 
Method Summary
 void main()
          Default callback method.
 
Methods inherited from class springs.agent.SpringsAgent_RMIImpl
addObserver, addTaskToSchedule, addTaskToSchedule, addTaskToSchedule, addTaskToSchedule, addTaskToSchedule, afterCreation, afterRemoval, atHome, beforeCreation, beforeRemoval, callAgentMethod, callAgentMethod, callAgentMethodAsynchronously, callAgentMethodAsynchronously, callback, checkpoint, getAddress, getAgentInitializationTime, getAgentMoving, getArgsCallbackMethod, getCallbackMethod, getCodebase, getContextInterfaceForAgents, getContextName, getHomeAddress, getHostname, getLocationServers, getMillisStay, getMillisWhenCreated, getName, getNameWithContext, getNumObservers, getObservers, getObserversAddresses, getPort, getSchedule, getSequenceNumberForAddressUpdateMessages, getURL, goHome, goHome, goHome, handleMessage, hasCallbackMethod, increaseSequenceNumberForAddressUpdateMessages, initialization, initializationAfterMovement, isSuspended, justCreatedForTheFirstTime, moreTasksInSchedule, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveToURL, moveToURL, moveToURL, moveToURL, postArrival, postDeparture, preArrival, preDeparture, receiveMethodCall, recordEndStay, recordStartStay, remove, removeObserver, sendAsynchronousMessage, sendMessage, sendMessage, setAgentInitializationTime, setAgentMoving, setCacheReferences, setCallbackMethod, setCodebase, setContextInterfaceForAgents, setHomeAddress, setLocationServers, setName, start, suspend, takeNextTask
 
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
 

Constructor Detail

SpringsHelloAgent

public SpringsHelloAgent()
                  throws java.rmi.RemoteException
Method Detail

main

public void main()
Description copied from interface: SpringsAgent
Default callback method.

Specified by:
main in interface SpringsAgent
Overrides:
main in class SpringsAgent_RMIImpl