gov.nasa.javaGenes.EOSscheduling
Class NodeFactory
java.lang.Object
gov.nasa.javaGenes.EOSscheduling.NodeFactory
- All Implemented Interfaces:
- java.io.Serializable
- public class NodeFactory
- extends java.lang.Object
- implements java.io.Serializable
used to reuse and avoid garbage collecting Nodes. Number of nodes grows monotonically for life of the object.
- See Also:
- Serialized Form
Method Summary |
protected void |
initialize()
only call when all Nodes are no longer needed (or suffer a horrible fate) |
protected AvailableNode |
newAvailableNode(int startTime,
Node previous,
Node next)
|
protected SlewNode |
newSlewNode(SlewRequirement slew,
boolean mustRampToEnd,
int startTime,
Node previous,
Node next)
|
protected SSRNode |
newSSRNode(int capacity,
int startTime,
Node previous,
Node next)
|
protected AvailableNode |
newUnAvailableNode(int startTime,
Node previous,
Node next)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodeFactory
public NodeFactory()
initialize
protected void initialize()
- only call when all Nodes are no longer needed (or suffer a horrible fate)
newSSRNode
protected SSRNode newSSRNode(int capacity,
int startTime,
Node previous,
Node next)
newAvailableNode
protected AvailableNode newAvailableNode(int startTime,
Node previous,
Node next)
newUnAvailableNode
protected AvailableNode newUnAvailableNode(int startTime,
Node previous,
Node next)
newSlewNode
protected SlewNode newSlewNode(SlewRequirement slew,
boolean mustRampToEnd,
int startTime,
Node previous,
Node next)