JavaGenes, NASA Ames. Written largely by Al Globus

gov.nasa.javaGenes.EOSscheduling
Class Node

java.lang.Object
  extended bygov.nasa.javaGenes.EOSscheduling.TimeInterval
      extended bygov.nasa.javaGenes.EOSscheduling.Node
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AvailableNode, SlewNode, SSRNode

public class Node
extends TimeInterval

See Also:
Serialized Form

Field Summary
protected  Node next
           
protected  Node previous
           
protected  int startTime
           
 
Constructor Summary
protected Node()
          should only be called from NodeFactory and subclasses (via NodeFactory)
 
Method Summary
 int getEnd()
           
 int getStart()
           
protected  boolean isDurationAvailable(int inStartTime, int inDuration)
           
 Node next()
           
 Node previous()
           
protected  void setEnd(int inEndTime)
           
protected  void setNext(Node node)
           
protected  void setPrevious(Node node)
           
protected  void setStart(int inStartTime)
           
protected  void setTimeAndNeighbors(int inStartTime, Node previous, Node next)
           
 
Methods inherited from class gov.nasa.javaGenes.EOSscheduling.TimeInterval
getDuration, includes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

startTime

protected int startTime

previous

protected Node previous

next

protected Node next
Constructor Detail

Node

protected Node()
should only be called from NodeFactory and subclasses (via NodeFactory)

Method Detail

setTimeAndNeighbors

protected void setTimeAndNeighbors(int inStartTime,
                                   Node previous,
                                   Node next)

getStart

public int getStart()
Specified by:
getStart in class TimeInterval

setStart

protected void setStart(int inStartTime)

getEnd

public int getEnd()
Specified by:
getEnd in class TimeInterval

setEnd

protected void setEnd(int inEndTime)

next

public Node next()

setNext

protected void setNext(Node node)

previous

public Node previous()

setPrevious

protected void setPrevious(Node node)

isDurationAvailable

protected boolean isDurationAvailable(int inStartTime,
                                      int inDuration)
Returns:
true if can start in this node and finish by the end of it

JavaGenes, NASA Ames. Written largely by Al Globus