gov.nasa.javaGenes.EOSscheduling
Class Timeline
java.lang.Object
gov.nasa.javaGenes.EOSscheduling.Timeline
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- AvailabilityTimeline, SlewTimeline, SSRTimeline
- public abstract class Timeline
- extends java.lang.Object
- implements java.io.Serializable
This class must be very fast. Therefor, object generation is minimized here and in
all subclasses.
- See Also:
- Serialized Form
Constructor Summary |
Timeline()
must be called by all Timeline and subclass constructors reinitialize
timelines for next scheduling execution. |
Timeline(Horizon inHorizon)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nodeFactory
protected static NodeFactory nodeFactory
NOT_SCHEDULED
public static final int NOT_SCHEDULED
- See Also:
- Constant Field Values
debug
protected static final boolean debug
- See Also:
- Constant Field Values
nodeList
protected Node nodeList
nodeArray
protected gov.nasa.javaGenes.EOSscheduling.NodeArray nodeArray
horizon
protected Horizon horizon
Timeline
public Timeline()
- must be called by all Timeline and subclass constructors reinitialize
timelines for next scheduling execution.
Timeline
public Timeline(Horizon inHorizon)
getHorizon
public Horizon getHorizon()
getStart
public int getStart()
getEnd
public int getEnd()
includes
public boolean includes(int time)
includes
public boolean includes(Node node)
- is the time covered by 'node' inside this?
initialize
public void initialize()
getInitialNodeForNodeArray
public Node getInitialNodeForNodeArray()
setUpNodeList
public void setUpNodeList()
findEarliest
public abstract int findEarliest(int start,
int end,
SchedulingData schedulingData)
fits
public abstract boolean fits(int start,
SchedulingData schedulingData)
insertAt
public abstract void insertAt(int start,
SchedulingData schedulingData)
getFirstNode
public Node getFirstNode()
horizonIsValid
public boolean horizonIsValid()
initializeAllTimelines
public static void initializeAllTimelines()
assertIsValid
public void assertIsValid()
getNodeAtTime
public Node getNodeAtTime(int atTime)