|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.electric.tool.ncc.netlist.NetObject
com.sun.electric.tool.ncc.netlist.Wire
public class Wire
A Wire represents an electrical equipotential.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.sun.electric.tool.ncc.netlist.NetObject |
---|
NetObject.Type |
Constructor Summary | |
---|---|
Wire(NccNameProxy.WireNameProxy name)
|
Method Summary | |
---|---|
void |
add(Part p)
add a Part to this Wire |
Port |
addExport(java.lang.String portName,
PortCharacteristic type,
boolean oneNamePerPort)
add a Port to this Wire |
void |
checkMe(Circuit parent)
check that this Wire is properly structured. |
java.lang.Integer |
computeHashCode()
|
java.lang.String |
connectionDescription(int maxParts)
Get a String indicating up to N connections for this NetObject. |
java.util.Iterator |
getConnected()
|
java.lang.String |
getName()
instance name qualified by path prefix |
NccNameProxy.WireNameProxy |
getNameProxy()
|
NetObject.Type |
getNetObjType()
Distinguish Parts, Wires, and Ports. |
java.util.Iterator<Part> |
getParts()
|
Port |
getPort()
|
java.lang.String |
instanceDescription()
human readable identification of instance |
boolean |
isDeleted()
|
int |
numParts()
count the number of Parts connected to this wire. |
void |
putInFinalForm()
Remove deleted Parts. |
void |
setDeleted()
Mark this wire deleted and release all storage |
boolean |
touches(Part p)
Does this Wire connect to the given Part? |
boolean |
touches(Port p)
Does this Wire connect to the given Port? |
java.lang.String |
valueDescription()
human readable enumeration of sizes and other values |
Methods inherited from class com.sun.electric.tool.ncc.netlist.NetObject |
---|
error, fullDescription, getCode, getParent, setParent, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.sun.electric.tool.ncc.result.NetObjReport.NetObjReportable |
---|
fullDescription |
Constructor Detail |
---|
public Wire(NccNameProxy.WireNameProxy name)
Method Detail |
---|
public java.lang.String getName()
NetObject
getName
in interface NetObjReport.NetObjReportable
getName
in class NetObject
public NccNameProxy.WireNameProxy getNameProxy()
getNameProxy
in interface WireReport.WireReportable
public java.util.Iterator<Part> getParts()
public java.util.Iterator getConnected()
getConnected
in class NetObject
public void add(Part p)
p
- the Part to addpublic Port addExport(java.lang.String portName, PortCharacteristic type, boolean oneNamePerPort)
portName
- the Port to addpublic void putInFinalForm()
public Port getPort()
public NetObject.Type getNetObjType()
NetObject
getNetObjType
in class NetObject
public void setDeleted()
public boolean isDeleted()
isDeleted
in class NetObject
public void checkMe(Circuit parent)
checkMe
in class NetObject
parent
- the wire's parentpublic boolean touches(Part p)
p
- the Part to test
public boolean touches(Port p)
p
- the Port in question
public java.lang.Integer computeHashCode()
public int numParts()
public java.lang.String instanceDescription()
NetObject
instanceDescription
in interface NetObjReport.NetObjReportable
instanceDescription
in class NetObject
public java.lang.String valueDescription()
NetObject
valueDescription
in class NetObject
public java.lang.String connectionDescription(int maxParts)
connectionDescription
in class NetObject
maxParts
- the maximum number of connections to list
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |