fern.analysis
Class ShortestPath.Path

java.lang.Object
  extended by fern.analysis.ShortestPath.Path
Enclosing class:
ShortestPath

public class ShortestPath.Path
extends Object

Encapsulates a path from one species to another.

Author:
Florian Erhard

Constructor Summary
ShortestPath.Path(int[] path)
          Creates a path from an array.
 
Method Summary
 int[] getRawData()
          Returns the raw path: Is ends with a species index and is composed of alternating indices of species and reactions.
 int[] getReactions()
          Returns all the reactions on this path.
 int[] getSpecies()
          Returns all the species on this path.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ShortestPath.Path

public ShortestPath.Path(int[] path)
Creates a path from an array. The array has to end with a species and has to be composed of alternating indices of species and reactions.

Parameters:
path - Arrays containing the network indices of the path's components
Method Detail

getRawData

public int[] getRawData()
Returns the raw path: Is ends with a species index and is composed of alternating indices of species and reactions.

Returns:
Raw path of alternating indices of species and reactions ending at a species index.

getSpecies

public int[] getSpecies()
Returns all the species on this path.

Returns:
Indices of the species.

getReactions

public int[] getReactions()
Returns all the reactions on this path.

Returns:
Indices of the reactions.

toString

public String toString()
Overrides:
toString in class Object