edu.mit.ll.group43.surfaceoptimization.network.dp
Class SubsequenceGeneratorNode

java.lang.Object
  extended by edu.mit.ll.group43.surfaceoptimization.network.dp.SubsequenceGeneratorNode
All Implemented Interfaces:
NetworkNode

public class SubsequenceGeneratorNode
extends java.lang.Object
implements NetworkNode

Represents a node in a network created from a table of valid locations for various indexes from an FCFS sequence, with respect to a CPS value. Such a network is used to generate the subsequences stored in the nodes of the CPS network.

Author:
William Hawkins

Constructor Summary
SubsequenceGeneratorNode(int fcfs)
           
 
Method Summary
 void addNextNode(NetworkEdge nextNode)
           
 void addPrevNode(NetworkEdge prevNode)
           
 void addValidPath(Subsequence<java.lang.Integer> path, int cps)
           
 int getFcfs()
           
 java.util.ArrayList<NetworkEdge> getNextNodes()
          Returns a list of edges that originate from this node.
 java.util.ArrayList<NetworkEdge> getPrevNodes()
          Returns a list of edges that point to this node.
 java.util.TreeSet<Subsequence<java.lang.Integer>> getValidPaths()
           
 void setNextNodes(java.util.ArrayList<NetworkEdge> nextNodes)
          Sets this node's list of edges that originate from it.
 void setPrevNodes(java.util.ArrayList<NetworkEdge> prevNodes)
          Sets this node's list of edges that point to it.
 void setValidPaths(java.util.TreeSet<Subsequence<java.lang.Integer>> validPaths)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubsequenceGeneratorNode

public SubsequenceGeneratorNode(int fcfs)
Method Detail

getNextNodes

public java.util.ArrayList<NetworkEdge> getNextNodes()
Description copied from interface: NetworkNode
Returns a list of edges that originate from this node.

Specified by:
getNextNodes in interface NetworkNode
Returns:

getPrevNodes

public java.util.ArrayList<NetworkEdge> getPrevNodes()
Description copied from interface: NetworkNode
Returns a list of edges that point to this node.

Specified by:
getPrevNodes in interface NetworkNode
Returns:

setNextNodes

public void setNextNodes(java.util.ArrayList<NetworkEdge> nextNodes)
Description copied from interface: NetworkNode
Sets this node's list of edges that originate from it.

Specified by:
setNextNodes in interface NetworkNode

addPrevNode

public void addPrevNode(NetworkEdge prevNode)

addNextNode

public void addNextNode(NetworkEdge nextNode)

setPrevNodes

public void setPrevNodes(java.util.ArrayList<NetworkEdge> prevNodes)
Description copied from interface: NetworkNode
Sets this node's list of edges that point to it.

Specified by:
setPrevNodes in interface NetworkNode

getFcfs

public int getFcfs()

getValidPaths

public java.util.TreeSet<Subsequence<java.lang.Integer>> getValidPaths()

setValidPaths

public void setValidPaths(java.util.TreeSet<Subsequence<java.lang.Integer>> validPaths)

addValidPath

public void addValidPath(Subsequence<java.lang.Integer> path,
                         int cps)