|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jsim.process.DynamicNode jsim.process.Source
public class Source
The Source class allows generators (sources) of entities to be created. A Source object periodically creates entities (SimObjects) of a given type.
Field Summary |
---|
Fields inherited from class jsim.process.DynamicNode |
---|
costs, duration, occupancy, outgoing, props, trc |
Constructor Summary | |
---|---|
Source(int id,
Prop props,
double stopTime,
java.lang.String entityTName,
Transport[] outgoing,
AnimationQueue queue)
Constructor which uses id Constructs a Source of entities. |
|
Source(int id,
Prop props,
java.lang.String entityTName,
Transport[] outgoing,
AnimationQueue queue)
Uses id for Animator Constructs a Source of entities. |
|
Source(Prop props,
double stopTime,
java.lang.String entityTName,
Transport[] outgoing,
AnimationQueue queue)
Constructs a Source of entities. |
|
Source(Prop props,
java.lang.String entityTName,
Transport[] outgoing,
AnimationQueue queue)
Constructs a Source of entities. |
Method Summary | |
---|---|
boolean |
getStopped()
This method returns the status of the Source. |
void |
run()
The run method of Source. |
void |
start(java.util.LinkedList<Coroutine> liveEntity,
Model env)
This method starts the Source thread. |
void |
startEntity()
Create and start a new entity (SimObject). |
void |
stop()
This method stops the Source thread. |
Methods inherited from class jsim.process.DynamicNode |
---|
getNodeStats, getOutgoing, getProps, setBatchProperties, setPrimary, setProps |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Source(Prop props, double stopTime, java.lang.String entityTName, Transport[] outgoing, AnimationQueue queue)
props
- property of nodestopTime
- stop at this timemaker
- object to make client entitiesoutgoing
- outgoing edgesqueue
- shared Queue for communication with animatorpublic Source(int id, Prop props, double stopTime, java.lang.String entityTName, Transport[] outgoing, AnimationQueue queue)
id
- id of the nodeprops
- property of nodestopTime
- stop at this timemaker
- object to make client entitiesoutgoing
- outgoing edgesqueue
- shared Queue for communication with animatorpublic Source(Prop props, java.lang.String entityTName, Transport[] outgoing, AnimationQueue queue)
props
- property of nodemaker
- object to make client entitiesoutgoing
- outgoing edgespublic Source(int id, Prop props, java.lang.String entityTName, Transport[] outgoing, AnimationQueue queue)
id
- id of the nodeprops
- property of nodemaker
- object to make client entitiesoutgoing
- outgoing edgesMethod Detail |
---|
public void start(java.util.LinkedList<Coroutine> liveEntity, Model env)
liveEntity
- list of live entitiespublic void stop()
public boolean getStopped()
public void startEntity()
public void run()
run
in interface java.lang.Runnable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |