org.opencores.routing
Class Segment

java.lang.Object
  |
  +--org.opencores.routing.Segment

class Segment
extends java.lang.Object
implements java.lang.Comparable

Class used for spreading wave. c is accessible from prev via segnent index s


Field Summary
(package private)  NodeRoutable c
          channel we are on
(package private)  Segment prev
          During search - where we came from
(package private)  int s
          segment we are on
 
Constructor Summary
(package private) Segment(NodeRoutable c, int s, Segment prev)
          constructs new segment
 
Method Summary
 int compareTo(java.lang.Object o)
          Method required by Compareable interface.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

prev

Segment prev
During search - where we came from

c

NodeRoutable c
channel we are on

s

int s
segment we are on
Constructor Detail

Segment

Segment(NodeRoutable c,
        int s,
        Segment prev)
constructs new segment
Method Detail

compareTo

public int compareTo(java.lang.Object o)
Method required by Compareable interface.
Specified by:
compareTo in interface java.lang.Comparable
Parameters:
c - channel to compare to
See Also:
Comparable