|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.electric.database.variable.ElectricObject
com.sun.electric.database.topology.Geometric
com.sun.electric.database.topology.ArcInst
public class ArcInst
An ArcInst is an instance of an ArcProto (a wire type) An ArcInst points to its prototype, the Cell on which it has been instantiated, and the connection at either end of the wire. The geometry of the wire (width and length) is captured in the bounds of the Geometric portion of this object.
ArcInst objects have properties that constrain them. Here is the notion of "Fixed angle":
Here is the notion of rigid arcs:
Here is the notion of slidable arcs:
Constraints propagate hierarchically:
Field Summary | |
---|---|
static Variable.Key |
ARC_NAME
Key of the obsolete variable holding arc name. |
static int |
HEADEND
The index of the head of this ArcInst. |
static ArcInst[] |
NULL_ARRAY
empty array of ArcInsts. |
static int |
TAILEND
The index of the tail of this ArcInst. |
Fields inherited from class com.sun.electric.database.topology.Geometric |
---|
parent |
Constructor Summary | |
---|---|
ArcInst(Topology topology,
ImmutableArcInst d,
PortInst headPort,
PortInst tailPort)
Private constructor of ArcInst. |
Method Summary | |
---|---|
int |
addDisplayableVariables(java.awt.geom.Rectangle2D rect,
Poly[] polys,
int start,
EditWindow0 wnd,
boolean multipleStrings)
Method to add all displayable Variables on this Electric object to an array of Poly objects. |
void |
addVar(Variable var)
Method to add a Variable on this ArcInst. |
void |
check(Poly.Builder polyBuilder)
Method to check invariants in this ArcInst. |
int |
checkAndRepair(boolean repair,
java.util.List<Geometric> list,
ErrorLogger errorLogger)
Method to check and repair data structure errors in this ArcInst. |
void |
checkPossibleVariableEffects(Variable.Key key)
Method to handle special case side-effects of setting variables on this NodeInst. |
boolean |
compare(java.lang.Object obj,
java.lang.StringBuffer buffer)
This function is to compare NodeInst elements. |
int |
compareTo(ArcInst that)
Compares ArcInsts by their Cells and names. |
void |
copyConstraintsFrom(ArcInst fromAi)
Copies constraints (Rigid, Ends Extended, etc) from another arcinst to this arcinst It copies also attributes of Connections (arrow/negated/extended) |
void |
copyPropertiesFrom(ArcInst fromAi)
Copies all properties (variables, constraints, and textdescriptor) from 'fraomAi' to this arcinst. |
Poly |
cropPerLayer(Poly poly)
Method to crop given polygon against a connecting transistor. |
Poly |
curvedArcLambdaOutline(Poly.Type style,
long gridWidth,
long gridRadius)
Method to fill polygon "poly" with the outline in lambda units of the curved arc in this ArcInst whose width in grid units is "gridWidth". |
void |
delVar(Variable.Key key)
Method to delete a Variable from this ArcInst. |
java.lang.String |
describe(boolean withQuotes)
Method to describe this ArcInst as a string. |
int |
getAngle()
Method to return the rotation angle of this ArcInst. |
int |
getArcId()
Method to get the arcId of this ArcInst. |
java.awt.geom.Rectangle2D |
getBounds()
Method to return the bounds of this ArcInst. |
Connection |
getConnection(int connIndex)
Method to return the connection at an end of this ArcInst. |
ImmutableArcInst |
getD()
Returns persistent data of this ArcInst. |
Poly[] |
getDisplayableVariables(EditWindow0 wnd)
Method to get all displayable Variables on this ArcInst to an array of Poly objects. |
long |
getGridBaseWidth()
Method to return the base width of this ArcInst in grid units. |
long |
getGridFullWidth()
Method to return the full width of this ArcInst in grid units. |
double |
getGridLength()
Method to return the length of this ArcInst in grid units. |
HeadConnection |
getHead()
Method to return the Connection on the head end of this ArcInst. |
EPoint |
getHeadLocation()
Method to return the Location on head of this ArcInst. |
PortInst |
getHeadPortInst()
Method to return the PortInst on head of this ArcInst. |
double |
getLambdaBaseWidth()
Method to return the base width of this ArcInst in lambda units. |
double |
getLambdaLength()
Method to return the length of this ArcInst in lambda units. |
EPoint |
getLocation(int connIndex)
Method to return the Location on an end of this ArcInst. |
java.lang.String |
getName()
Method to return the name of this ArcInst. |
Name |
getNameKey()
Method to return the name key of this ArcInst. |
PortInst |
getPortInst(int connIndex)
Method to return the PortInst on an end of this ArcInst. |
ArcProto |
getProto()
Method to return the prototype of this ArcInst. |
java.util.Iterator<Poly> |
getShape(Poly.Builder polyBuilder)
Returns the polygons that describe this ArcInst. |
TailConnection |
getTail()
Method to return the Connection on the tail end of this ArcInst. |
EPoint |
getTailLocation()
Method to return the Location on tail of this ArcInst. |
PortInst |
getTailPortInst()
Method to return the PortInst on tail of this ArcInst. |
TextDescriptor |
getTextDescriptor(Variable.Key varKey)
Returns the TextDescriptor on this ArcInst selected by variable key. |
boolean |
headStillInPort(java.awt.geom.Point2D pt,
boolean reduceForArc)
Method to tell whether a head connection on this ArcInst contains a port location. |
boolean |
isArrowed(int connIndex)
Method to determine whether this ArcInst is directional, with an arrow on one end. |
boolean |
isBodyArrowed()
Method to determine whether this ArcInst is directional, with an arrow line drawn down the center. |
boolean |
isConnected(Geometric geom)
Method to tell whether this ArcInst is connected directly to another Geometric object (that is, an arcinst connected to a nodeinst). |
boolean |
isDeprecatedVariable(Variable.Key key)
Method to determine whether a variable key on ArcInst is deprecated. |
boolean |
isDiffusionArc()
Method to determin if arc contains active diffusion |
boolean |
isExtended(int connIndex)
Method to tell whether an end of ArcInst has its ends extended. |
boolean |
isFixedAngle()
Method to tell whether this ArcInst is fixed-angle. |
boolean |
isHardSelect()
Method to tell whether this ArcInst is hard-to-select. |
boolean |
isHeadArrowed()
Method to determine whether this ArcInst is directional, with an arrow on the head. |
boolean |
isHeadExtended()
Method to tell whether the head of this arc is extended. |
boolean |
isHeadNegated()
Method to tell whether the head of this arc is negated. |
boolean |
isLinked()
Returns true if this ArcInst is linked into database. |
boolean |
isNegated(int connIndex)
Method to tell whether an end of this arc is negated. |
boolean |
isRigid()
Method to tell whether this ArcInst is rigid. |
boolean |
isSlidable()
Method to tell whether this ArcInst is slidable. |
boolean |
isTailArrowed()
Method to determine whether this ArcInst is directional, with an arrow on the tail. |
boolean |
isTailExtended()
Method to tell whether the tail of this arc is extended. |
boolean |
isTailNegated()
Method to tell whether the tail of this arc is negated. |
boolean |
isUsernamed()
Retruns true if this ArcInst was named by user. |
boolean |
isZeroLength()
Returns true if length of this ArcInst is zero. |
void |
kill()
Method to delete this ArcInst. |
void |
lowLevelModify(ImmutableArcInst d)
Low-level method to change the width and end locations of this ArcInst. |
static ArcInst |
makeInstance(ArcProto type,
PortInst head,
PortInst tail)
Method to create a new ArcInst with appropriate defaults, connecting two PortInsts. |
static ArcInst |
makeInstance(ArcProto type,
PortInst head,
PortInst tail,
java.awt.geom.Point2D headPt,
java.awt.geom.Point2D tailPt,
java.lang.String name)
Method to create a new ArcInst with appropriate defaults, connecting two PortInsts at specified locations. |
static ArcInst |
makeInstanceBase(ArcProto type,
double baseWidth,
PortInst head,
PortInst tail)
Method to create a new ArcInst with appropriate defaults, connecting two PortInsts. |
static ArcInst |
makeInstanceBase(ArcProto type,
double baseWidth,
PortInst head,
PortInst tail,
java.awt.geom.Point2D headPt,
java.awt.geom.Point2D tailPt,
java.lang.String name)
Method to create a new ArcInst with appropriate defaults, connecting two PortInsts at specified locations. |
Poly |
makeLambdaPoly(long gridWidth,
Poly.Type style)
Method to create a Poly object that describes an ArcInst in lambda units. |
void |
modify(double dHeadX,
double dHeadY,
double dTailX,
double dTailY)
Method to change the width and end locations of this ArcInst. |
static ArcInst |
newInstance(Cell parent,
ArcProto protoType,
java.lang.String name,
TextDescriptor nameDescriptor,
PortInst headPort,
PortInst tailPort,
EPoint headPt,
EPoint tailPt,
long gridExtendOverMin,
int angle,
int flags)
Method to create a new ArcInst connecting two PortInsts at specified locations. |
static ArcInst |
newInstanceBase(ArcProto type,
double baseWidth,
PortInst head,
PortInst tail)
Method to create a new ArcInst connecting two PortInsts. |
static ArcInst |
newInstanceBase(ArcProto type,
double baseWidth,
PortInst head,
PortInst tail,
java.awt.geom.Point2D headPt,
java.awt.geom.Point2D tailPt,
java.lang.String name,
int defAngle)
Method to create a new ArcInst connecting two PortInsts at specified locations. |
static ArcInst |
newInstanceBase(ArcProto type,
double baseWidth,
PortInst head,
PortInst tail,
java.awt.geom.Point2D headPt,
java.awt.geom.Point2D tailPt,
java.lang.String name,
int defAngle,
int flags)
Method to create a new ArcInst connecting two PortInsts at specified locations. |
int |
numDisplayableVariables(boolean multipleStrings)
Method to return the number of displayable Variables on this ArcInst. |
void |
redoGeometric()
Method to recalculate the Geometric bounds for this NodeInst. |
ArcInst |
replace(ArcProto ap)
Method to replace this ArcInst with one of another type. |
void |
setAngle(int angle)
Method to set the rotation angle of this ArcInst. |
void |
setArrowed(int connIndex,
boolean state)
Method to set this ArcInst to be directional, with an arrow on one end. |
void |
setBodyArrowed(boolean state)
Method to set this ArcInst to be directional, with an arrow line drawn down the center. |
boolean |
setD(ImmutableArcInst newD,
boolean notify)
Modifies persistend data of this ArcInst. |
void |
setDInUndo(ImmutableArcInst newD)
|
void |
setExtended(int connIndex,
boolean e)
Method to set whether an end of this arc is extended. |
void |
setFixedAngle(boolean state)
Method to set this ArcInst to be fixed-angle. |
void |
setGridBaseWidth(long gridBaseWidth)
Method to change the width this ArcInst. |
void |
setHardSelect(boolean state)
Method to set this ArcInst to be hard-to-select. |
void |
setHeadArrowed(boolean state)
Method to set this ArcInst to be directional, with an arrow on the head. |
void |
setHeadExtended(boolean e)
Method to set whether the head of this arc is extended. |
void |
setHeadNegated(boolean n)
Method to set whether the head of this arc is negated. |
void |
setLambdaBaseWidth(double lambdaBaseWidth)
Method to change the width this ArcInst. |
boolean |
setName(java.lang.String name)
Method to rename this ArcInst. |
void |
setNegated(int connIndex,
boolean n)
Method to set whether an end of this arc is negated. |
void |
setRigid(boolean state)
Method to set this ArcInst to be rigid. |
void |
setSlidable(boolean state)
Method to set this ArcInst to be slidable. |
void |
setTailArrowed(boolean state)
Method to set this ArcInst to be directional, with an arrow on the tail. |
void |
setTailExtended(boolean e)
Method to set whether the tail of this arc is extended. |
void |
setTailNegated(boolean n)
Method to set whether the tail of this arc is negated. |
void |
setTextDescriptor(Variable.Key varKey,
TextDescriptor td)
Updates the TextDescriptor on this ArcInst selected by varKey. |
boolean |
stillInPort(int connIndex,
java.awt.geom.Point2D pt,
boolean reduceForArc)
Method to tell whether a connection on this ArcInst contains a port location. |
boolean |
tailStillInPort(java.awt.geom.Point2D pt,
boolean reduceForArc)
Method to tell whether a tail connection on this ArcInst contains a port location. |
java.lang.String |
toString()
Returns a printable version of this ArcInst. |
Methods inherited from class com.sun.electric.database.topology.Geometric |
---|
checkChanging, getDatabase, getGridBounds, getInfo, getLambdaBounds, getParent, getTrueCenter, getTrueCenterX, getTrueCenterY, whichCell, whichMultiPage |
Methods inherited from class com.sun.electric.database.variable.ElectricObject |
---|
check, checkExamine, checkUndoing, computeTextPoly, copyTextDescriptorFrom, copyVarsFrom, getArtwork, getCode, getDisplayableVariables, getEditingPreferences, getGeneric, getMutableTextDescriptor, getNumVariables, getParameterOrVariable, getParameterOrVariable, getParametersAndVariables, getPolyList, getSchematics, getTech, getTechPool, getTextBounds, getVar, getVar, getVariables, getVarValue, getVarValue, isDatabaseObject, isParam, newDisplayVar, newVar, newVar, newVar, newVar, renameVar, renameVar, setOff, uniqueObjectName, uniqueObjectName, updateVar, updateVarCode, updateVarText |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final ArcInst[] NULL_ARRAY
public static final int TAILEND
public static final int HEADEND
public static final Variable.Key ARC_NAME
Constructor Detail |
---|
public ArcInst(Topology topology, ImmutableArcInst d, PortInst headPort, PortInst tailPort)
topology
- the Topology of the ArcInst.d
- persistent data of ArcInst.headPort
- the head end PortInst.tailPort
- the tail end PortInst.Method Detail |
---|
public static ArcInst makeInstance(ArcProto type, PortInst head, PortInst tail)
type
- the prototype of the new ArcInst.head
- the head end PortInst.tail
- the tail end PortInst.
public static ArcInst makeInstanceBase(ArcProto type, double baseWidth, PortInst head, PortInst tail)
type
- the prototype of the new ArcInst.baseWidth
- the base width of the new ArcInst. The width must be > 0.head
- the head end PortInst.tail
- the tail end PortInst.
public static ArcInst makeInstance(ArcProto type, PortInst head, PortInst tail, java.awt.geom.Point2D headPt, java.awt.geom.Point2D tailPt, java.lang.String name)
type
- the prototype of the new ArcInst.head
- the head end PortInst.tail
- the tail end PortInst.headPt
- the coordinate of the head end PortInst.tailPt
- the coordinate of the tail end PortInst.name
- the name of the new ArcInst
public static ArcInst makeInstanceBase(ArcProto type, double baseWidth, PortInst head, PortInst tail, java.awt.geom.Point2D headPt, java.awt.geom.Point2D tailPt, java.lang.String name)
type
- the prototype of the new ArcInst.baseWidth
- the base width of the new ArcInst. The width must be > 0.head
- the head end PortInst.tail
- the tail end PortInst.headPt
- the coordinate of the head end PortInst.tailPt
- the coordinate of the tail end PortInst.name
- the name of the new ArcInst
public static ArcInst newInstanceBase(ArcProto type, double baseWidth, PortInst head, PortInst tail)
type
- the prototype of the new ArcInst.baseWidth
- the base width of the new ArcInst. The width must be > 0.head
- the head end PortInst.tail
- the tail end PortInst.
public static ArcInst newInstanceBase(ArcProto type, double baseWidth, PortInst head, PortInst tail, java.awt.geom.Point2D headPt, java.awt.geom.Point2D tailPt, java.lang.String name, int defAngle)
type
- the prototype of the new ArcInst.baseWidth
- the base width of the new ArcInst. The width must be > 0.head
- the head end PortInst.tail
- the tail end PortInst.headPt
- the coordinate of the head end PortInst.tailPt
- the coordinate of the tail end PortInst.name
- the name of the new ArcInstdefAngle
- default angle in case port points coincide
public static ArcInst newInstanceBase(ArcProto type, double baseWidth, PortInst head, PortInst tail, java.awt.geom.Point2D headPt, java.awt.geom.Point2D tailPt, java.lang.String name, int defAngle, int flags)
type
- the prototype of the new ArcInst.baseWidth
- the base width of the new ArcInst. The width must be > 0.head
- the head end PortInst.tail
- the tail end PortInst.headPt
- the coordinate of the head end PortInst.tailPt
- the coordinate of the tail end PortInst.name
- the name of the new ArcInstdefAngle
- default angle in case port points coincideflags
- flags of thew new ArcInst
public static ArcInst newInstance(Cell parent, ArcProto protoType, java.lang.String name, TextDescriptor nameDescriptor, PortInst headPort, PortInst tailPort, EPoint headPt, EPoint tailPt, long gridExtendOverMin, int angle, int flags)
parent
- the parent Cell of this ArcInstprotoType
- the ArcProto of this ArcInst.name
- the name of this ArcInstnameDescriptor
- text descriptor of name of this ArcInstheadPort
- the head end PortInst.tailPort
- the tail end PortInst.headPt
- the coordinate of the head end PortInst.tailPt
- the coordinate of the tail end PortInst.gridExtendOverMin
- the extend of this ArcInst over minimal-width arc of this type in grid units.angle
- angle in tenth-degrees.flags
- flag bits.
public void kill()
public void modify(double dHeadX, double dHeadY, double dTailX, double dTailY)
dHeadX
- the change to the X coordinate of the head of this ArcInst.dHeadY
- the change to the Y coordinate of the head of this ArcInst.dTailX
- the change to the X coordinate of the tail of this ArcInst.dTailY
- the change to the Y coordinate of the tail of this ArcInst.public void setLambdaBaseWidth(double lambdaBaseWidth)
lambdaBaseWidth
- new base width of the ArcInst in lambda units.public void setGridBaseWidth(long gridBaseWidth)
gridBaseWidth
- new base width of the ArcInst in lambda units.public ArcInst replace(ArcProto ap)
ap
- the new type of arc.
public ImmutableArcInst getD()
getD
in class ElectricObject
public boolean setD(ImmutableArcInst newD, boolean notify)
newD
- new persistent data.notify
- true to notify Undo system.
public void setDInUndo(ImmutableArcInst newD)
public void addVar(Variable var)
addVar
in class ElectricObject
var
- Variable to add.public void checkPossibleVariableEffects(Variable.Key key)
key
- the Variable key that has changed on this NodeInst.public void delVar(Variable.Key key)
delVar
in class ElectricObject
key
- the key of the Variable to delete.public void lowLevelModify(ImmutableArcInst d)
d
- the new persistent data of this ArcInst.public long getGridFullWidth()
public double getLambdaBaseWidth()
public long getGridBaseWidth()
public double getLambdaLength()
public double getGridLength()
public boolean isZeroLength()
public int getAngle()
public void setAngle(int angle)
angle
- the rotation angle of this ArcInst (in tenth-degrees).
In general, you should not call this method because the
constructors and modification methods update this correctly.
If, however, you have a zero-length arc and want to explicitly set
its angle, then use this method.public java.util.Iterator<Poly> getShape(Poly.Builder polyBuilder)
getShape
in class Geometric
polyBuilder
- Poly builder.
public java.awt.geom.Rectangle2D getBounds()
getBounds
in interface RTBounds
getBounds
in class Geometric
public void redoGeometric()
public Poly makeLambdaPoly(long gridWidth, Poly.Type style)
gridWidth
- the width of the Poly in grid units.style
- the style of the ArcInst.
public Poly curvedArcLambdaOutline(Poly.Type style, long gridWidth, long gridRadius)
public int numDisplayableVariables(boolean multipleStrings)
numDisplayableVariables
in class ElectricObject
public int addDisplayableVariables(java.awt.geom.Rectangle2D rect, Poly[] polys, int start, EditWindow0 wnd, boolean multipleStrings)
addDisplayableVariables
in class ElectricObject
rect
- a rectangle describing the bounds of the object on which the Variables will be displayed.polys
- an array of Poly objects that will be filled with the displayable Variables.start
- the starting index in the array of Poly objects to fill with displayable Variables.wnd
- window in which the Variables will be displayed.multipleStrings
- true to break multiline text into multiple Polys.
public Poly[] getDisplayableVariables(EditWindow0 wnd)
wnd
- window in which the Variables will be displayed.
public TailConnection getTail()
public HeadConnection getHead()
public Connection getConnection(int connIndex)
connIndex
- TAILEND (0) for the tail of this ArcInst, HEADEND (1) for the head.public PortInst getTailPortInst()
public PortInst getHeadPortInst()
public boolean isConnected(Geometric geom)
isConnected
in class Geometric
geom
- other Geometric object.
public PortInst getPortInst(int connIndex)
connIndex
- TAILEND (0) for the tail of this ArcInst, HEADEND (1) for the head.
public EPoint getTailLocation()
public EPoint getHeadLocation()
public EPoint getLocation(int connIndex)
connIndex
- TAILEND (0) for the tail of this ArcInst, HEADEND (1) for the head.
public boolean tailStillInPort(java.awt.geom.Point2D pt, boolean reduceForArc)
pt
- the point in question.reduceForArc
- if true reduce width by width offset of it proto.
public boolean headStillInPort(java.awt.geom.Point2D pt, boolean reduceForArc)
pt
- the point in question.reduceForArc
- if true reduce width by width offset of it proto.
public boolean stillInPort(int connIndex, java.awt.geom.Point2D pt, boolean reduceForArc)
connIndex
- TAILEND (0) for the tail of this ArcInst, HEADEND (1) for the head.pt
- the point in question.reduceForArc
- if true reduce width by width offset of it proto.
public java.lang.String getName()
public boolean isUsernamed()
public Name getNameKey()
public boolean setName(java.lang.String name)
name
- new name of this geometric.
public TextDescriptor getTextDescriptor(Variable.Key varKey)
ArcInst.ARC_NAME
The TextDescriptor gives information for displaying the Variable.
getTextDescriptor
in class ElectricObject
varKey
- key of variable or special key.
public void setTextDescriptor(Variable.Key varKey, TextDescriptor td)
setTextDescriptor
in class ElectricObject
varKey
- key of variable or special key.td
- new value TextDescriptorpublic boolean isDeprecatedVariable(Variable.Key key)
isDeprecatedVariable
in class ElectricObject
key
- the key of the variable.
public java.lang.String describe(boolean withQuotes)
describe
in class Geometric
withQuotes
- to wrap description between quotes
public int compareTo(ArcInst that)
compareTo
in interface java.lang.Comparable<ArcInst>
that
- the other ArcInst.
public java.lang.String toString()
toString
in class ElectricObject
public void setRigid(boolean state)
state
- public boolean isRigid()
public void setFixedAngle(boolean state)
state
- public boolean isFixedAngle()
public void setSlidable(boolean state)
state
- public boolean isSlidable()
public boolean isArrowed(int connIndex)
connIndex
- TAILEND (0) for the tail of this ArcInst, HEADEND (1) for the head.
public boolean isTailArrowed()
public boolean isHeadArrowed()
public boolean isBodyArrowed()
public void setArrowed(int connIndex, boolean state)
connIndex
- TAILEND (0) for the tail of this ArcInst, HEADEND (1) for the head.state
- true to show a directional arrow on the specified end.public void setTailArrowed(boolean state)
state
- true to show a directional arrow on the tail.public void setHeadArrowed(boolean state)
state
- true to show a directional arrow on the head.public void setBodyArrowed(boolean state)
state
- true to show a directional line on this arc.public boolean isExtended(int connIndex)
connIndex
- TAILEND (0) for the tail of this ArcInst, HEADEND (1) for the head.
public boolean isTailExtended()
public boolean isHeadExtended()
public void setExtended(int connIndex, boolean e)
connIndex
- TAILEND (0) for the tail of this ArcInst, HEADEND (1) for the head.e
- true to set that end of this arc to be extended.public void setTailExtended(boolean e)
e
- true to set the tail of this arc to be extended.public void setHeadExtended(boolean e)
e
- true to set the head of this arc to be extended.public boolean isNegated(int connIndex)
connIndex
- TAILEND (0) for the tail of this ArcInst, HEADEND (1) for the head.
public boolean isTailNegated()
public boolean isHeadNegated()
public void setNegated(int connIndex, boolean n)
connIndex
- TAILEND (0) for the tail of this ArcInst, HEADEND (1) for the head.n
- true to set that end of this arc to be negated.public void setTailNegated(boolean n)
n
- true to set the tail of this arc to be negated.public void setHeadNegated(boolean n)
n
- true to set the head of this arc to be negated.public int checkAndRepair(boolean repair, java.util.List<Geometric> list, ErrorLogger errorLogger)
public void check(Poly.Builder polyBuilder)
java.lang.AssertionError
- if invariants are not validpublic final int getArcId()
public boolean isLinked()
isLinked
in class ElectricObject
public ArcProto getProto()
public void copyPropertiesFrom(ArcInst fromAi)
fromAi
- the arc from which to copy all arc propertiespublic void copyConstraintsFrom(ArcInst fromAi)
fromAi
- the arcinst from which to copy constraintspublic void setHardSelect(boolean state)
state
- public boolean isHardSelect()
public boolean compare(java.lang.Object obj, java.lang.StringBuffer buffer)
obj
- Object to compare tobuffer
- To store comparison messages in case of failure
public Poly cropPerLayer(Poly poly)
poly
-
public boolean isDiffusionArc()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |