|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.tudelft.simulation.event.EventProducer
nl.tudelft.simulation.dsol.formalisms.flow.Station
nl.tudelft.simulation.examples.dsol.timesharedcomputer.CPU
public class CPU
The CPU example as published in Simulation Modeling and Analysis by A.M. Law &
W.D. Kelton section 1.4 and 2.4.
(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
Field Summary | |
---|---|
static boolean |
BUSY
BUSY defines the BUSY state |
static boolean |
IDLE
IDLE defines the IDLE state |
static double |
QUANTUM
QUANTUM is the QUANTUM of the CPU |
static EventType |
QUEUE_LENGTH_EVENT
QUEUE_LENGTH_EVENT is fired on changes in the Queue length |
static double |
SWAP
SWAP is the swap of this cpu |
static EventType |
UTILIZATION_EVENT
UTILIZATION_EVENT are fired on utilization |
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 | |
---|---|
CPU(DEVSSimulatorInterface simulator)
constructs a new CPU |
Method Summary | |
---|---|
Bounds |
getBounds()
|
DirectedPoint |
getLocation()
|
List |
getQueue()
returns the queue |
void |
receiveObject(Object object)
|
protected void |
releaseObject(Object object)
|
Methods inherited from class nl.tudelft.simulation.dsol.formalisms.flow.Station |
---|
getDestination, 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 |
Field Detail |
---|
public static final EventType UTILIZATION_EVENT
public static final EventType QUEUE_LENGTH_EVENT
public static final double QUANTUM
public static final double SWAP
public static final boolean IDLE
public static final boolean BUSY
Constructor Detail |
---|
public CPU(DEVSSimulatorInterface simulator) throws RemoteException
simulator
- a devs simulator
RemoteException
- on network failureMethod Detail |
---|
public List getQueue()
public void receiveObject(Object object)
receiveObject
in interface StationInterface
receiveObject
in class Station
StationInterface.receiveObject(java.lang.Object)
protected void releaseObject(Object object) throws RemoteException
releaseObject
in class Station
RemoteException
Station.releaseObject(java.lang.Object)
public DirectedPoint getLocation()
getLocation
in interface LocatableInterface
#getLocation()
public Bounds getBounds()
getBounds
in interface LocatableInterface
LocatableInterface.getBounds()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |