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

java.lang.Object
  extended bynl.tudelft.simulation.dsol.formalisms.process.Process
      extended bynl.tudelft.simulation.dsol.tutorial.section45.Boat
All Implemented Interfaces:
nl.tudelft.simulation.dsol.formalisms.ResourceRequestorInterface

public class Boat
extends nl.tudelft.simulation.dsol.formalisms.process.Process
implements nl.tudelft.simulation.dsol.formalisms.ResourceRequestorInterface

A Boat
(c) copyright 2003 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: General Public License (GPL) , no warranty

Version:
1.0 Jan 19, 2004
Author:
Peter Jacobs

Field Summary
 
Fields inherited from class nl.tudelft.simulation.dsol.formalisms.process.Process
simulator
 
Constructor Summary
Boat(nl.tudelft.simulation.dsol.simulators.DEVSSimulator simulator, Port port)
          constructs a new Boat
 
Method Summary
 void process()
           
 void receiveRequestedResource(double requestedCapacity, nl.tudelft.simulation.dsol.formalisms.Resource resource)
           
 java.lang.String toString()
           
 
Methods inherited from class nl.tudelft.simulation.dsol.formalisms.process.Process
hold, resume, suspend
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Boat

public Boat(nl.tudelft.simulation.dsol.simulators.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()
             throws nl.tudelft.simulation.dsol.SimRuntimeException,
                    java.rmi.RemoteException
Throws:
nl.tudelft.simulation.dsol.SimRuntimeException
java.rmi.RemoteException
See Also:
Process.process()

receiveRequestedResource

public void receiveRequestedResource(double requestedCapacity,
                                     nl.tudelft.simulation.dsol.formalisms.Resource resource)
Specified by:
receiveRequestedResource in interface nl.tudelft.simulation.dsol.formalisms.ResourceRequestorInterface
See Also:
#receiveRequestedResource(double, nl.tudelft.simulation.dsol.formalisms.Resource)

toString

public java.lang.String toString()
See Also:
Object.toString()


Copyright © 2002-2004 Delft University of Technology, the Netherlands. All Rights Reserved.