JavaGenes, NASA Ames. Written largely by Al Globus

gov.nasa.javaGenes.EOSscheduling
Class SlewTimelineNone

java.lang.Object
  extended bygov.nasa.javaGenes.EOSscheduling.Timeline
      extended bygov.nasa.javaGenes.EOSscheduling.SlewTimeline
          extended bygov.nasa.javaGenes.EOSscheduling.SlewTimelineNone
All Implemented Interfaces:
java.io.Serializable

public class SlewTimelineNone
extends SlewTimeline

See Also:
Serialized Form

Field Summary
 
Fields inherited from class gov.nasa.javaGenes.EOSscheduling.Timeline
debug, horizon, nodeArray, nodeFactory, nodeList, NOT_SCHEDULED
 
Constructor Summary
SlewTimelineNone()
           
 
Method Summary
 int findEarliest(int startTime, int endTime, int duration, SlewRequirement slewRequirement, Slewable slewable)
          This will happen a lot and must be very fast.
 boolean fits(int start, SchedulingData schedulingData)
           
 int getTotalSlewing(Slewable slewable)
           
protected  void insertAt(int startTime, int endTime, SlewRequirement slew)
          assumes the insertion is legal.
 void printToTsd(java.io.PrintWriter out)
           
 void setUpNodeList()
           
 
Methods inherited from class gov.nasa.javaGenes.EOSscheduling.SlewTimeline
assertIsValid, endTimeOK, findEarliest, getEarliestStartTimeInNode, getRampArray, getSlewArray, getStartTimesArray, getTotalSlewTime, incompatibleSlewInMiddle, insertAt, isLastEndNode, isLastStartNode, printToTsd, setLastNodes
 
Methods inherited from class gov.nasa.javaGenes.EOSscheduling.Timeline
getEnd, getFirstNode, getHorizon, getInitialNodeForNodeArray, getNodeAtTime, getStart, horizonIsValid, includes, includes, initialize, initializeAllTimelines
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SlewTimelineNone

public SlewTimelineNone()
Method Detail

findEarliest

public int findEarliest(int startTime,
                        int endTime,
                        int duration,
                        SlewRequirement slewRequirement,
                        Slewable slewable)
Description copied from class: SlewTimeline
This will happen a lot and must be very fast. Avoid unnecessary tests and object creation.

Overrides:
findEarliest in class SlewTimeline
Returns:
time time >= start time <= end || NOT_SCHEDULED

insertAt

protected void insertAt(int startTime,
                        int endTime,
                        SlewRequirement slew)
Description copied from class: SlewTimeline
assumes the insertion is legal. Puts in two slew nodes, one at startTime and the other at endTime with the same slew requirement (assumes the slew doesn't change during the observation).

Overrides:
insertAt in class SlewTimeline

getTotalSlewing

public int getTotalSlewing(Slewable slewable)

setUpNodeList

public void setUpNodeList()
Overrides:
setUpNodeList in class SlewTimeline

printToTsd

public void printToTsd(java.io.PrintWriter out)

fits

public boolean fits(int start,
                    SchedulingData schedulingData)
Overrides:
fits in class SlewTimeline

JavaGenes, NASA Ames. Written largely by Al Globus