|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.mit.ll.group43.surfaceoptimization.network.dp.CPSNetworkNode
public class CPSNetworkNode
Represents a node in the CPS sequence optimization network.
Constructor Summary | |
---|---|
CPSNetworkNode(Subsequence<Aircraft> aircraft)
Constructs a CPS network node from the given sequence of aircraft. |
Method Summary | |
---|---|
void |
addNextNode(NetworkEdge nextNode)
Add a relationship to the given node where this node points to it. |
void |
addPrevNode(NetworkEdge prevNode)
Add a relationship to the given node where this node is pointed to by it. |
int |
compareTo(CPSNetworkNode other)
|
boolean |
equals(java.lang.Object other)
|
Subsequence<Aircraft> |
getAircraft()
Get the subsequence of Aircraft this node represents |
static int |
getCreated()
Returns how many times the constructor of this class has been invoked. |
Aircraft |
getLastAircraft()
|
java.util.ArrayList<NetworkEdge> |
getNextNodes()
Returns a list of edges that originate from this node. |
int |
getOptDistance()
Get the optimal distance this node is from the start node. |
NetworkEdge |
getOptPrevNode()
Get this node's predecessor node that gives it its optimal distance from the start node. |
java.util.ArrayList<NetworkEdge> |
getPrevNodes()
Returns a list of edges that point to this node. |
int |
hashCode()
|
boolean |
isMarked()
|
void |
mark()
|
void |
removeNextNode(NetworkEdge nextNode)
Remove the relationship between this node and the given node to which it points. |
void |
removePrevNode(NetworkEdge prevNode)
Remove the relationship between this node and the given node that points to it. |
void |
removeRelationships()
Remove relationships to this node from all nodes that point to and are pointed to by this node, then remove those relationships from this node as well. |
void |
setNextNodes(java.util.ArrayList<NetworkEdge> nextNodes)
Sets this node's list of edges that originate from it. |
void |
setOptDistance(int optDistance)
Set the optimal distance this node is from the start node. |
void |
setOptPrevNode(NetworkEdge optPrevNode)
Set this node's predecessor node that gives it its optimal distance from the start node. |
void |
setPrevNodes(java.util.ArrayList<NetworkEdge> prevNodes)
Sets this node's list of edges that point to it. |
void |
unmark()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CPSNetworkNode(Subsequence<Aircraft> aircraft)
aircraft
- Method Detail |
---|
public static int getCreated()
public java.util.ArrayList<NetworkEdge> getPrevNodes()
NetworkNode
getPrevNodes
in interface NetworkNode
public void setPrevNodes(java.util.ArrayList<NetworkEdge> prevNodes)
NetworkNode
setPrevNodes
in interface NetworkNode
public void addPrevNode(NetworkEdge prevNode)
prevNode
- public void removePrevNode(NetworkEdge prevNode)
prevNode
- public java.util.ArrayList<NetworkEdge> getNextNodes()
NetworkNode
getNextNodes
in interface NetworkNode
public void setNextNodes(java.util.ArrayList<NetworkEdge> nextNodes)
NetworkNode
setNextNodes
in interface NetworkNode
public void addNextNode(NetworkEdge nextNode)
nextNode
- public void removeNextNode(NetworkEdge nextNode)
nextNode
- public void removeRelationships()
public NetworkEdge getOptPrevNode()
public void setOptPrevNode(NetworkEdge optPrevNode)
optPrevNode
- public int getOptDistance()
public void setOptDistance(int optDistance)
optDistance
- public Subsequence<Aircraft> getAircraft()
public Aircraft getLastAircraft()
public void mark()
public void unmark()
public boolean isMarked()
public int compareTo(CPSNetworkNode other)
compareTo
in interface java.lang.Comparable<CPSNetworkNode>
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |