public static class BookshelfNodes.BookshelfNode
extends java.lang.Object
Constructor and Description |
---|
BookshelfNodes.BookshelfNode(java.lang.String name,
double width,
double height,
boolean terminal) |
Modifier and Type | Method and Description |
---|---|
static BookshelfNodes.BookshelfNode |
findNode(java.lang.String name)
Find a BookshelfNode from its name.
|
static java.util.Collection<BookshelfNodes.BookshelfNode> |
getAllNodes()
Return a list of all BookshelfNodes.
|
double |
getHeight() |
NodeInst |
getInstance() |
java.lang.String |
getName() |
java.util.List<BookshelfNodes.BookshelfPin> |
getPins() |
Cell |
getPrototype() |
int |
getWeight() |
double |
getWidth() |
double |
getX() |
double |
getY() |
boolean |
isTerminal() |
void |
setHeight(double height) |
void |
setInstance(NodeInst instance) |
void |
setLocation(double x,
double y) |
void |
setName(java.lang.String name) |
void |
setPins(java.util.List<BookshelfNodes.BookshelfPin> pins) |
void |
setPrototype(Cell prototype) |
void |
setTerminal(boolean terminal) |
void |
setWeight(int weight) |
void |
setWidth(double width) |
java.lang.String |
toString() |
public BookshelfNodes.BookshelfNode(java.lang.String name, double width, double height, boolean terminal)
name
- width
- height
- public java.lang.String getName()
public void setName(java.lang.String name)
name
- the name to setpublic double getWidth()
public void setWidth(double width)
width
- the width to setpublic double getHeight()
public void setHeight(double height)
height
- the height to setpublic double getX()
public double getY()
public void setLocation(double x, double y)
x
- the X coordinate to sety
- the Y coordinate to setpublic Cell getPrototype()
public void setInstance(NodeInst instance)
instance
- the actual NodeInst.public NodeInst getInstance()
public void setPrototype(Cell prototype)
prototype
- the Cell prototypepublic static BookshelfNodes.BookshelfNode findNode(java.lang.String name)
name
- the name of the BookshelfNode.public static java.util.Collection<BookshelfNodes.BookshelfNode> getAllNodes()
public void setPins(java.util.List<BookshelfNodes.BookshelfPin> pins)
pins
- the pins to setpublic java.util.List<BookshelfNodes.BookshelfPin> getPins()
public void setTerminal(boolean terminal)
terminal
- the terminal to setpublic boolean isTerminal()
public java.lang.String toString()
toString
in class java.lang.Object
public void setWeight(int weight)
weight
- the weight to setpublic int getWeight()