JavaGenes, NASA Ames. Written largely by Al Globus

gov.nasa.javaGenes.EOSscheduling
Class Timeline

java.lang.Object
  extended bygov.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

Field Summary
protected static boolean debug
           
protected  Horizon horizon
           
protected  gov.nasa.javaGenes.EOSscheduling.NodeArray nodeArray
           
protected static NodeFactory nodeFactory
           
protected  Node nodeList
           
static int NOT_SCHEDULED
           
 
Constructor Summary
Timeline()
          must be called by all Timeline and subclass constructors reinitialize timelines for next scheduling execution.
Timeline(Horizon inHorizon)
           
 
Method Summary
 void assertIsValid()
           
abstract  int findEarliest(int start, int end, SchedulingData schedulingData)
           
abstract  boolean fits(int start, SchedulingData schedulingData)
           
 int getEnd()
           
 Node getFirstNode()
           
 Horizon getHorizon()
           
 Node getInitialNodeForNodeArray()
           
 Node getNodeAtTime(int atTime)
           
 int getStart()
           
 boolean horizonIsValid()
           
 boolean includes(int time)
           
 boolean includes(Node node)
          is the time covered by 'node' inside this?
 void initialize()
           
static void initializeAllTimelines()
           
abstract  void insertAt(int start, SchedulingData schedulingData)
           
 void setUpNodeList()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

Timeline

public Timeline()
must be called by all Timeline and subclass constructors reinitialize timelines for next scheduling execution.


Timeline

public Timeline(Horizon inHorizon)
Method Detail

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)

JavaGenes, NASA Ames. Written largely by Al Globus