jsim.process
Class Split
java.lang.Object
jsim.process.DynamicNode
jsim.process.Split
public class Split
- extends DynamicNode
The Split class is not functional yet.
Constructor Summary |
Split(double x1,
double y1,
double x2,
double y2,
java.lang.String entityTName,
Transport[] outgoing)
Construct a Split. |
Split(int id,
Prop props,
java.lang.String entityTName,
Transport[] outgoing,
AnimationQueue queue)
Construct a Split. |
Method Summary |
void |
cloneEntity(SimObject entity)
Create and start a new entity (SimObject). |
void |
use(SimObject entity)
This method is called by SimObjects when they are done with
their business and wish to leave the application scenario. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Split
public Split(double x1,
double y1,
double x2,
double y2,
java.lang.String entityTName,
Transport[] outgoing)
- Construct a Split. This constructor has sufficient information
to draw the node.
- Parameters:
outgoing
- outgoing transports
Split
public Split(int id,
Prop props,
java.lang.String entityTName,
Transport[] outgoing,
AnimationQueue queue)
- Construct a Split. This constructor has sufficient information
to draw the node.
Version of the constructor to use with animator package
- Parameters:
outgoing
- outgoing transports (should be null)id
- id of nodequeue
- shared queue for use with animator package
use
public void use(SimObject entity)
- This method is called by SimObjects when they are done with
their business and wish to leave the application scenario.
It also computes lifetime statistics for SimObjects.
- Parameters:
SimObject
- the SimObject that wishes to be captured.
cloneEntity
public void cloneEntity(SimObject entity)
- Create and start a new entity (SimObject).
This can be done internally in the run method, or
externally in response to a Java Beans event.