nl.tudelft.simulation.examples.dsol.timesharedcomputer
Class Computer.ExitCounter

java.lang.Object
  extended by nl.tudelft.simulation.event.EventProducer
      extended by nl.tudelft.simulation.jstats.statistics.StatisticsObject
          extended by nl.tudelft.simulation.jstats.statistics.Counter
              extended by nl.tudelft.simulation.dsol.statistics.Counter
                  extended by nl.tudelft.simulation.examples.dsol.timesharedcomputer.Computer.ExitCounter
All Implemented Interfaces:
Serializable, EventListener, EventListenerInterface, EventProducerInterface, Swingable
Enclosing class:
Computer

public class Computer.ExitCounter
extends Counter

A counter which stops after a predifined number of jobs

See Also:
Serialized Form

Field Summary
 
Fields inherited from class nl.tudelft.simulation.jstats.statistics.Counter
count, COUNT_EVENT, description, n, N_EVENT
 
Fields inherited from class nl.tudelft.simulation.jstats.statistics.StatisticsObject
filter
 
Fields inherited from class nl.tudelft.simulation.event.EventProducer
listeners
 
Fields inherited from interface nl.tudelft.simulation.event.EventProducerInterface
FIRST_POSITION, LAST_POSITION
 
Constructor Summary
Computer.ExitCounter(String description, SimulatorInterface simulator)
          constructs a new ExitCounter
 
Method Summary
 void notify(EventInterface event)
           
 
Methods inherited from class nl.tudelft.simulation.dsol.statistics.Counter
endOfReplication
 
Methods inherited from class nl.tudelft.simulation.jstats.statistics.Counter
getCount, getDescription, getN, getTable, initialize, isInitialized, toString
 
Methods inherited from class nl.tudelft.simulation.jstats.statistics.StatisticsObject
getSwingPanel
 
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

Computer.ExitCounter

public Computer.ExitCounter(String description,
                            SimulatorInterface simulator)
                     throws RemoteException
constructs a new ExitCounter

Parameters:
description - the description of the counter
simulator - the simulator
Throws:
RemoteException - on network failure
Method Detail

notify

public void notify(EventInterface event)
Specified by:
notify in interface EventListenerInterface
Overrides:
notify in class Counter
See Also:
#notify(nl.tudelft.simulation.event.EventInterface)


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