examples.carcontrol
Class LockAgent
java.lang.Object
de.fhg.igd.semoa.agent.RoundtripAgent
examples.carcontrol.LockAgent
- All Implemented Interfaces:
- Runnable, Serializable
- public class LockAgent
- extends RoundtripAgent
When the LockAgent
arrives at a SeMoA server, it will
lookup for LockService
and create an instance of this service.
- Author:
- Daniel Bachmann (bachmann@igd.fhg.de)
- See Also:
- Serialized Form
Method Summary |
protected void |
finish()
This method is called when the agent reached its final
hop. |
void |
LockAgent()
|
protected void |
perform()
This method must be implemented by subclasses. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
service
private transient LockService service
status_
private boolean status_
LockAgent
public LockAgent()
LockAgent
public void LockAgent()
perform
protected void perform()
- Description copied from class:
RoundtripAgent
- This method must be implemented by subclasses. It is called
once for each hop on the agent's itinarary when the agent
is at the desired hop. Default is to print the number of
the current hop.
- Overrides:
perform
in class RoundtripAgent
finish
protected void finish()
- Description copied from class:
RoundtripAgent
- This method is called when the agent reached its final
hop. Subclasses should override this method with agent
specific behavior. Default is to print a short message
saying that the agent finished.
- Overrides:
finish
in class RoundtripAgent
Copyright © Fraunhofer Gesellschaft. All
Rights Reserved.