org.opencores.structure
Class IndexedNode

java.lang.Object
  |
  +--org.opencores.structure.Node
        |
        +--org.opencores.structure.NodeRoutable
              |
              +--org.opencores.structure.IndexedNode
Direct Known Subclasses:
NodeGPC, NodeIOC

public abstract class IndexedNode
extends NodeRoutable

Class representing Nodes, that can be indexed. From index we can calculate actual position. All mapped elements should extend this node.


Field Summary
 int idx
          node index
 
Fields inherited from class org.opencores.structure.NodeRoutable
cost, costs, neigh, neighCoor, NINPUTS_ROUTABLE, nSegments, portsUnassigned, segments
 
Fields inherited from class org.opencores.structure.Node
dir, flag, fx, fy, INOUT, INPUT, link, name, nfx, nfy, OUTPUT, ports, temp, visited, weight, width, x, y
 
Constructor Summary
IndexedNode(int width)
          Costructs new node.
 
Method Summary
abstract  int posX()
          Returns its x position.
abstract  int posY()
          Returns its y position.
 
Methods inherited from class org.opencores.structure.NodeRoutable
calcCost, isConnectable, lessLoadedNeighbour, opposite, writeBitstream
 
Methods inherited from class org.opencores.structure.Node
clone, duplicate, linkNets, setWidth, toString, unlinkNets
 
Methods inherited from class java.lang.Object
, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

idx

public int idx
node index
Constructor Detail

IndexedNode

public IndexedNode(int width)
Costructs new node.
Parameters:
width - node width
Method Detail

posX

public abstract int posX()
Returns its x position.
Returns:
x position

posY

public abstract int posY()
Returns its y position.
Returns:
y position