com.sun.electric.database.topology
Class HeadConnection

java.lang.Object
  extended by com.sun.electric.database.topology.Connection
      extended by com.sun.electric.database.topology.HeadConnection

public class HeadConnection
extends Connection

A HeadConnection represents connection on the head end of the ArcInstance.


Method Summary
 int getEndIndex()
          Method to determine the index of this HeadConnection on its ArcInst.
 EPoint getLocation()
          Method to return the location on this HeadConnection.
 PortInst getPortInst()
          Method to return the PortInst on this HeadConnection.
 boolean isArrowed()
          Method to tell whether this connection is arrowed.
 boolean isExtended()
          Method to tell whether this connection is extended.
 boolean isNegated()
          Method to tell whether this connection is negated.
 void setArrowed(boolean state)
          Method to set whether this connection is arrowed.
 void setExtended(boolean e)
          Method to set whether this connection is extended.
 void setNegated(boolean negated)
          Method to set whether this connection is negated.
 java.lang.String toString()
          Returns a printable version of this HeadConnection.
 
Methods inherited from class com.sun.electric.database.topology.Connection
getArc
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getPortInst

public PortInst getPortInst()
Method to return the PortInst on this HeadConnection.

Specified by:
getPortInst in class Connection
Returns:
the PortInst on this HeadConnection.

getLocation

public EPoint getLocation()
Method to return the location on this HeadConnection.

Specified by:
getLocation in class Connection
Returns:
the location on this HeadConnection.

isArrowed

public boolean isArrowed()
Method to tell whether this connection is arrowed.

Specified by:
isArrowed in class Connection
Returns:
true if this connection is arrowed.

setArrowed

public void setArrowed(boolean state)
Method to set whether this connection is arrowed.

Specified by:
setArrowed in class Connection
Parameters:
state - true to set that end of this arc to be arrowed.

isExtended

public boolean isExtended()
Method to tell whether this connection is extended.

Specified by:
isExtended in class Connection
Returns:
true if this connection is negated.

setExtended

public void setExtended(boolean e)
Method to set whether this connection is extended.

Specified by:
setExtended in class Connection
Parameters:
e - true to set that end of this arc to be extended.

isNegated

public boolean isNegated()
Method to tell whether this connection is negated.

Specified by:
isNegated in class Connection
Returns:
true if this connection is negated.

setNegated

public void setNegated(boolean negated)
Method to set whether this connection is negated.

Specified by:
setNegated in class Connection
Parameters:
negated - true if this connection is negated.

getEndIndex

public int getEndIndex()
Method to determine the index of this HeadConnection on its ArcInst.

Specified by:
getEndIndex in class Connection
Returns:
HEADEND

toString

public java.lang.String toString()
Returns a printable version of this HeadConnection.

Overrides:
toString in class java.lang.Object
Returns:
a printable version of this HeadConnection.