nl.tudelft.simulation.dsol.formalisms.flow
Class Schedule
java.lang.Object
nl.tudelft.simulation.event.EventProducer
nl.tudelft.simulation.dsol.formalisms.flow.Station
nl.tudelft.simulation.dsol.formalisms.flow.Generator
nl.tudelft.simulation.dsol.formalisms.flow.Schedule
- All Implemented Interfaces:
- Serializable, StationInterface, EventProducerInterface
public class Schedule
- extends Generator
The schedule is an extension to the generate which accepts a schedule of
interarrival times. Instead of generating with a continuous interarrival
distribution we submit a map consiting of keys (execution times). Each key
indicates the starting time of a new interval, while the value in the
map is the continuous distribution function to use to draw the interarrival
times. If no values have to be generated in a certain interval, use a large
interarrival time value in the distribution function, or use
DistConstant(stream, 1E20) to indicate that the next drawing will take place
after the end of the interval.
(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:
- $Revision: 1.1 $ $Date: 2007/01/06 13:21:26 $
- Author:
- Peter
Jacobs , Alexander
Verbraeck
- See Also:
- Serialized Form
Methods inherited from class nl.tudelft.simulation.dsol.formalisms.flow.Generator |
generate, generate, getBatchSize, getInterval, getMaxNumber, getStartTime, receiveObject, setBatchSize, setInterval, setMaxNumber, setStartTime |
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 |
Schedule
public Schedule(DEVSSimulatorInterface simulator,
Class myClass,
Object[] constructorArguments)
throws SimRuntimeException
- constructs a new Schedule
- Parameters:
simulator
- is the on which the construction of the objects must be
scheduled.myClass
- is the class of which entities are createdconstructorArguments
- are the parameters for the constructor of
myClass. of arguments.
constructorArgument[n]=new Integer(12)
may have
constructorArgumentClasses[n]=int.class;
- Throws:
SimRuntimeException
- on constructor invokation.
getSchedule
public SortedMap getSchedule()
- returns the schedule
- Returns:
- SortedMap the schedule
setSchedule
public void setSchedule(SortedMap map)
- sets the schedule
- Parameters:
map
- is the new map
changeIntervalTime
public void changeIntervalTime()
- changes the intervalTime of the schedule
Copyright © 2002-2010 Delft University of Technology, the Netherlands. All Rights Reserved.