|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.opencores.structure.Graph
Graph, that holds all nodes and nets.
| Field Summary | |
NetGlobal[] |
global
all global nets |
boolean |
mapped
specifies if graph has been mapped |
java.lang.String |
name
graph name |
java.util.Vector |
nets
all the nets |
java.util.Vector |
nodes
all the nodes |
NodeRoutable[][] |
pos
Nodes by position. |
NodeSR[] |
SR
special resources |
| Constructor Summary | |
Graph()
Constructs new empty graph. |
|
| Method Summary | |
void |
calcPositions()
Calculates positions (.x, .y) of IndexedNodes |
int |
check(boolean report)
checks graph for possible annomalies (unidirected lines) and can posts warnings. |
void |
clearNodes()
Sets all segments costs to MAX_VALUE. |
void |
constructSegments()
Constructs neighb field of all NodeRoutable nodes. |
void |
createFloatPositions()
copies (x,y) to (fx,fy) suitable for display |
void |
emtpySegments()
Empty all channel segments, and allocates those (on perimeter) that cannon be used. |
int |
repair(boolean report)
repairs graph, removing floating nodes and nets |
void |
setRandomPositions(int X,
int Y)
sets random values for x from 0..X-1 and y from 0..Y-1 |
java.lang.String |
toString()
outputs graph to String |
java.lang.String |
toString(java.lang.String comment)
outputs graph to String |
void |
writeBitstream(BitStreamWriter stream,
boolean clear)
Writes (necessary) bistream representation of this object to stream.
|
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public java.lang.String name
public java.util.Vector nodes
public java.util.Vector nets
public NetGlobal[] global
public NodeRoutable[][] pos
costructSegmentspublic NodeSR[] SR
public boolean mapped
| Constructor Detail |
public Graph()
| Method Detail |
public void constructSegments()
public void clearNodes()
public void emtpySegments()
public java.lang.String toString()
public java.lang.String toString(java.lang.String comment)
comment - graph comment
public void setRandomPositions(int X,
int Y)
X - maximum horizontal positionY - maximum vertical positionpublic int check(boolean report)
report - reports warnings to Conf.log if truepublic int repair(boolean report)
report - reports warnings to Conf.log if truepublic void createFloatPositions()
public void calcPositions()
public void writeBitstream(BitStreamWriter stream,
boolean clear)
throws java.io.IOException
this object to stream.
This method should be called after routingstream - stream to write toclear - whether should reset unused elements
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||