public static class PlacementAdapter.PlacementNode extends PlacementFrame.PlacementNode
Constructor and Description |
---|
PlacementAdapter.PlacementNode(NodeInst ni,
NodeProto type,
java.lang.String name,
int tBits,
double wid,
double hei,
java.util.List<PlacementAdapter.PlacementPort> pps,
boolean terminal)
Method to create a PlacementNode object.
|
Modifier and Type | Method and Description |
---|---|
void |
addEquivalentPorts(PlacementAdapter.PlacementPort p1,
PlacementAdapter.PlacementPort p2)
Method to indicate that two ports are equivalent on a node,
and therefore either one can be wired.
|
void |
addVariable(java.lang.String name,
java.lang.Object value)
Method to add variables to this PlacementNode.
|
java.util.Set<PlacementAdapter.PlacementPort> |
getEquivalents(PlacementAdapter.PlacementPort p) |
double |
getHeight()
Method to return the height of this PlacementNode.
|
NodeInst |
getOriginal()
Method to return the original NodeInst of this PlacementNode.
|
java.util.List<PlacementFrame.PlacementPort> |
getPorts()
Method to return a list of PlacementPorts on this PlacementNode.
|
int |
getTechBits()
Method to return the technology-specific information of this
PlacementNode.
|
NodeProto |
getType()
Method to return the NodeProto of this PlacementNode.
|
java.lang.String |
getTypeName()
Method to return the name of NodeProto of this PlacementNode.
|
double |
getWidth()
Method to return the width of this PlacementNode.
|
boolean |
isTerminal() |
java.lang.String |
toString() |
getPlacementOrientation, getPlacementX, getPlacementY, getUserObject, setOrientation, setPlacement, setUserObject
public PlacementAdapter.PlacementNode(NodeInst ni, NodeProto type, java.lang.String name, int tBits, double wid, double hei, java.util.List<PlacementAdapter.PlacementPort> pps, boolean terminal)
ni
- the original NodeInst from which this PlacementNode is derived (may be null).type
- the original Electric type of this PlacementNode (may be null).name
- the name to give the node once placed (may be null).tBits
- the technology-specific bits of this PlacementNode
(typically 0 except for specialized Schematics components).wid
- the width of this PlacementNode.hei
- the height of this PlacementNode.pps
- a list of PlacementPort on the PlacementNode, indicating connection locations.terminal
- public void addEquivalentPorts(PlacementAdapter.PlacementPort p1, PlacementAdapter.PlacementPort p2)
p1
- the first equivalent PlacementPort.p2
- the second equivalent PlacementPort.public java.util.Set<PlacementAdapter.PlacementPort> getEquivalents(PlacementAdapter.PlacementPort p)
public void addVariable(java.lang.String name, java.lang.Object value)
name
- the name of the variable to add.value
- the value of the variable to add.public NodeProto getType()
public NodeInst getOriginal()
public java.lang.String getTypeName()
getTypeName
in class PlacementFrame.PlacementNode
public java.util.List<PlacementFrame.PlacementPort> getPorts()
getPorts
in class PlacementFrame.PlacementNode
public int getTechBits()
public double getWidth()
getWidth
in class PlacementFrame.PlacementNode
public double getHeight()
getHeight
in class PlacementFrame.PlacementNode
public boolean isTerminal()
public java.lang.String toString()
toString
in class java.lang.Object