examples.carcontrol
Class DoorAgent

java.lang.Object
  extended byde.fhg.igd.semoa.agent.RoundtripAgent
      extended byexamples.carcontrol.DoorAgent
All Implemented Interfaces:
Runnable, Serializable

public class DoorAgent
extends RoundtripAgent

When the DoorAgent arrives at a SeMoA server, it will lookup for DoorService and create an instance of this service.

Author:
Daniel Bachmann (bachmann@igd.fhg.de)
See Also:
Serialized Form

Field Summary
private  DoorService service
           
private  byte status_
           
 
Fields inherited from class de.fhg.igd.semoa.agent.RoundtripAgent
debug_, env_, MAX_RETRIES, mob_, start_, time_, vars_
 
Constructor Summary
DoorAgent()
           
 
Method Summary
protected  void finish()
          This method is called when the agent reached its final hop.
protected  void perform()
          process at every hop
 
Methods inherited from class de.fhg.igd.semoa.agent.RoundtripAgent
getHopNumber, onRunning, run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

service

private transient DoorService service

status_

private byte status_
Constructor Detail

DoorAgent

public DoorAgent()
Method Detail

perform

protected void perform()
process at every 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.