jimmc.treepar
Class Track

java.lang.Object
  |
  +--jimmc.treepar.Track

public class Track
extends java.lang.Object

Track represents one routing track within a routing channel.


Field Summary
protected  java.util.Vector netsVector
          The nets in this track.
protected  int position
          Our position (S coordinate)
protected  Row row
          Our row.
protected  int trackNum
          Our track number within the row.
 
Constructor Summary
Track(Row row, int trackNum)
          Create a new track.
 
Method Summary
protected  void addNet(Net net)
          Add a net to this track.
protected  void setS(int position)
          Set our S coordinate.
protected  int used(int min, int max)
          If the specified span is in use, return the angle of the net which blocks that span, or return -1 if the span is available.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

row

protected Row row
Our row.

trackNum

protected int trackNum
Our track number within the row.

netsVector

protected java.util.Vector netsVector
The nets in this track.

position

protected int position
Our position (S coordinate)
Constructor Detail

Track

public Track(Row row,
             int trackNum)
Create a new track.
Method Detail

setS

protected void setS(int position)
Set our S coordinate.

addNet

protected void addNet(Net net)
Add a net to this track.

used

protected int used(int min,
                   int max)
If the specified span is in use, return the angle of the net which blocks that span, or return -1 if the span is available.