|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.electric.database.topology.Connection
public abstract class Connection
An abstract class Connection is the link between a PortInst on a NodeInst and an ArcInst. Its subclasses are TailConnection and HeadConnection. A Connection has an methods to get location indicating the endpoint of the ArcInst, to get the PortInst on a NodeInst and to get that ArcInst. It has also methods to get and modify propery bits on this end of the ArcInst. To find the arc(s) associated with a particular port on a node, ask the PortInst for a list of its connections. This class and its subclasses are immutable.
Method Summary | |
---|---|
ArcInst |
getArc()
Method to return the ArcInst on this Connection. |
abstract int |
getEndIndex()
Method to determine the index of this Connection on its ArcInst. |
abstract EPoint |
getLocation()
Method to return the location on this Connection. |
abstract PortInst |
getPortInst()
Method to return the PortInst on this Connection. |
abstract boolean |
isArrowed()
Method to tell whether this connection is arrowed. |
abstract boolean |
isExtended()
Method to tell whether this connection is extended. |
abstract boolean |
isNegated()
Method to tell whether this connection is negated. |
abstract void |
setArrowed(boolean state)
Method to set whether this connection is arrowed. |
abstract void |
setExtended(boolean e)
Method to set whether this connection is extended. |
abstract void |
setNegated(boolean negated)
Method to set whether this connection is negated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public ArcInst getArc()
public abstract PortInst getPortInst()
public abstract EPoint getLocation()
public abstract boolean isArrowed()
public abstract void setArrowed(boolean state)
state
- true to set that end of this arc to be arrowed.public abstract boolean isExtended()
public abstract void setExtended(boolean e)
e
- true to set that end of this arc to be extended.public abstract boolean isNegated()
public abstract void setNegated(boolean negated)
negated
- true if this connection is negated.public abstract int getEndIndex()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |