nl.tudelft.simulation.dsol.tutorial.appendix
Class Boat

java.lang.Object
  extended by nl.tudelft.simulation.event.EventProducer
      extended by nl.tudelft.simulation.dsol.interpreter.process.Process
          extended by nl.tudelft.simulation.dsol.formalisms.process.Process
              extended by 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

Field Summary
 
Fields inherited from class nl.tudelft.simulation.dsol.formalisms.process.Process
simulator
 
Fields inherited from class nl.tudelft.simulation.dsol.interpreter.process.Process
frameStack, state
 
Fields inherited from class nl.tudelft.simulation.event.EventProducer
listeners
 
Fields inherited from interface nl.tudelft.simulation.dsol.interpreter.process.ProcessInterface
DEAD, EXECUTING, INITIAL, STATE_CHANGE_EVENT, SUSPENDED
 
Fields inherited from interface nl.tudelft.simulation.event.EventProducerInterface
FIRST_POSITION, LAST_POSITION
 
Constructor Summary
Boat(DEVSSimulator simulator, Port port)
          constructs a new Boat
 
Method Summary
 void process()
           
 void receiveRequestedResource(double requestedCapacity, Resource resource)
           
 String toString()
           
 
Methods inherited from class nl.tudelft.simulation.dsol.formalisms.process.Process
hold
 
Methods inherited from class nl.tudelft.simulation.dsol.interpreter.process.Process
getState, resume, setState, suspend
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Boat

public Boat(DEVSSimulator simulator,
            Port port)
constructs a new Boat

Parameters:
simulator - the simulator to schedule on
port - the port to sail to
Method Detail

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.