nl.tudelft.simulation.examples.dsol.mm1queue
Class Seize

java.lang.Object
  extended by nl.tudelft.simulation.event.EventProducer
      extended by nl.tudelft.simulation.dsol.formalisms.flow.Station
          extended by nl.tudelft.simulation.dsol.formalisms.flow.Seize
              extended by nl.tudelft.simulation.examples.dsol.mm1queue.Seize
All Implemented Interfaces:
Serializable, StationInterface, ResourceRequestorInterface, EventProducerInterface

public class Seize
extends Seize

The Seize is an extended Seize block whic sets delay times on arriving customers.
(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:
2.0 21.09.2003
Author:
Peter Jacobs
See Also:
Serialized Form

Field Summary
 
Fields inherited from class nl.tudelft.simulation.dsol.formalisms.flow.Seize
DELAY_TIME, QUEUE_LENGTH_EVENT
 
Fields inherited from class nl.tudelft.simulation.dsol.formalisms.flow.Station
destination, simulator
 
Fields inherited from class nl.tudelft.simulation.event.EventProducer
listeners
 
Fields inherited from interface nl.tudelft.simulation.dsol.formalisms.flow.StationInterface
RECEIVE_EVENT, RELEASE_EVENT
 
Fields inherited from interface nl.tudelft.simulation.event.EventProducerInterface
FIRST_POSITION, LAST_POSITION
 
Constructor Summary
Seize(DEVSSimulatorInterface simulator, Resource resource)
          constructs a new Seize
Seize(DEVSSimulatorInterface simulator, Resource resource, double requestedCapacity)
          constructs a new Seize
 
Method Summary
 void receiveObject(Object object)
           
 
Methods inherited from class nl.tudelft.simulation.dsol.formalisms.flow.Seize
getQueue, receiveObject, receiveRequestedResource, setQueue
 
Methods inherited from class nl.tudelft.simulation.dsol.formalisms.flow.Station
getDestination, releaseObject, setDestination
 
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, toString, wait, wait, wait
 
Methods inherited from interface nl.tudelft.simulation.event.EventProducerInterface
addListener, addListener, addListener, addListener, getEventTypes, removeListener
 

Constructor Detail

Seize

public Seize(DEVSSimulatorInterface simulator,
             Resource resource)
constructs a new Seize

Parameters:
simulator - the devs simulator on which to schedule
resource - the resource to claim

Seize

public Seize(DEVSSimulatorInterface simulator,
             Resource resource,
             double requestedCapacity)
constructs a new Seize

Parameters:
simulator - the devs simulator on which to schedule
resource - the resource to claim
requestedCapacity - the amount to claim
Method Detail

receiveObject

public void receiveObject(Object object)
                   throws RemoteException
Specified by:
receiveObject in interface StationInterface
Overrides:
receiveObject in class Seize
Throws:
RemoteException
See Also:
StationInterface.receiveObject(java.lang.Object)


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