nl.tudelft.simulation.dsol.tutorial.appendix
Class Boat
java.lang.Object
nl.tudelft.simulation.event.EventProducer
nl.tudelft.simulation.dsol.interpreter.process.Process
nl.tudelft.simulation.dsol.formalisms.process.Process
nl.tudelft.simulation.dsol.tutorial.appendix.Boat
- All Implemented Interfaces:
- Serializable, ResourceRequestorInterface, ProcessInterface, EventProducerInterface
public class Boat
- extends Process
- implements ResourceRequestorInterface
A Boat as presented in Birtwistle, 1979, page 12
(c) copyright 2002-2005 Delft
University of Technology , the Netherlands.
See for project information
www.simulation.tudelft.nl
License of use: Lesser
General Public License (LGPL) , no warranty.
- Version:
- 1.0 Jan 19, 2004
- Author:
- Peter Jacobs
- See Also:
- Serialized Form
Fields inherited from class nl.tudelft.simulation.dsol.formalisms.process.Process |
simulator |
Methods inherited from class nl.tudelft.simulation.dsol.formalisms.process.Process |
hold |
Methods inherited from class nl.tudelft.simulation.event.EventProducer |
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, getEventTypes, removeAllListeners, removeAllListeners, removeListener |
Boat
public Boat(DEVSSimulator simulator,
Port port)
- constructs a new Boat
- Parameters:
simulator
- the simulator to schedule onport
- the port to sail to
process
public void process()
- Specified by:
process
in interface ProcessInterface
- Specified by:
process
in class Process
- See Also:
Process.process()
receiveRequestedResource
public void receiveRequestedResource(double requestedCapacity,
Resource resource)
- Specified by:
receiveRequestedResource
in interface ResourceRequestorInterface
- See Also:
#receiveRequestedResource(double,
nl.tudelft.simulation.dsol.formalisms.Resource)
toString
public String toString()
- Overrides:
toString
in class Object
- See Also:
Object.toString()
Copyright © 2002-2010 Delft University of Technology, the Netherlands. All Rights Reserved.