public class Wire extends NetObject implements WireReport.WireReportable
NetObject.Type| Constructor and Description |
|---|
Wire(NccNameProxy.WireNameProxy name) |
| Modifier and Type | Method and Description |
|---|---|
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
|
error, fullDescription, getCode, getParent, setParent, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfullDescriptionpublic Wire(NccNameProxy.WireNameProxy name)
public java.lang.String getName()
NetObjectgetName in interface NetObjReport.NetObjReportablegetName in class NetObjectpublic NccNameProxy.WireNameProxy getNameProxy()
getNameProxy in interface WireReport.WireReportablepublic java.util.Iterator<Part> getParts()
public java.util.Iterator getConnected()
getConnected in class NetObjectpublic 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()
NetObjectgetNetObjType in class NetObjectpublic void setDeleted()
public void checkMe(Circuit parent)
public boolean touches(Part p)
p - the Part to testpublic boolean touches(Port p)
p - the Port in questionpublic java.lang.Integer computeHashCode()
public int numParts()
public java.lang.String instanceDescription()
NetObjectinstanceDescription in interface NetObjReport.NetObjReportableinstanceDescription in class NetObjectpublic java.lang.String valueDescription()
NetObjectvalueDescription in class NetObjectpublic java.lang.String connectionDescription(int maxParts)
connectionDescription in class NetObjectmaxParts - the maximum number of connections to list