public class CellRevisionConn extends CellRevision
Modifier and Type | Class and Description |
---|---|
static class |
CellRevisionConn.CellRevisionProvider |
ALLOW_SUBCELLS_IN_ICON, arcs, d, EMPTY_BITSET, EMPTY_LIST, exports, nodes, NULL_ARRAY, NULL_INT_ARRAY
Modifier and Type | Method and Description |
---|---|
void |
check()
Checks invariant of this CellRevision.
|
java.util.List<ImmutableArcInst> |
getConnectionsOnNode(java.util.BitSet headEnds,
ImmutableNodeInst n)
Method to return a list of arcs connected to specified ImmutableNodeInst.
|
java.util.List<ImmutableArcInst> |
getConnectionsOnPort(java.util.BitSet headEnds,
ImmutableNodeInst n,
PortProtoId portId)
Method to return a list of arcs connected to speciefed or all ports of
specified ImmutableNodeInst.
|
long |
getConnectivityMemorySize(ObjSize objSize,
boolean restore)
Compute memory consumption
|
java.util.Iterator<ImmutableExport> |
getExportsOnNode(ImmutableNodeInst originalNode)
Method to return an Iterator over all ImmutableExports on specified
NodeInst.
|
java.util.Iterator<ImmutableExport> |
getExportsOnPort(ImmutableNodeInst originalNode,
PortProtoId portId)
Method to return an Iterator over all ImmutableExports on specified port
of specified ImmutableNodeInst.
|
int |
getNumConnectionsOnNode(ImmutableNodeInst n)
Method to return the number of Connections on specified
ImmutableNodeInst.
|
int |
getNumConnectionsOnPort(ImmutableNodeInst n,
PortProtoId portId)
Method to return the number of Connections on specified port of specified
ImmutableNodeInst.
|
int |
getNumExportsOnNode(ImmutableNodeInst originalNode)
Method to return the number of Exports on specified NodeInst.
|
int |
getNumExportsOnPort(ImmutableNodeInst originalNode,
PortProtoId portId)
Method to return the number of Exports on specified port of specified
ImmutableNodeInst.
|
boolean |
hasConnectionsOnNode(ImmutableNodeInst n)
Returns true of there are Connections on specified ImmutableNodeInst
|
boolean |
hasConnectionsOnPort(ImmutableNodeInst n,
PortProtoId portId)
Returns true of there are Connections on specified ImmutableNodeInst
connected either to specified port or to all ports
|
boolean |
hasExportsOnNode(ImmutableNodeInst originalNode)
Returns true of there are Exports on specified NodeInst.
|
boolean |
hasExportsOnPort(ImmutableNodeInst originalNode,
PortProtoId portId)
Returns true of there are Exports on specified port of specified
ImmutableNodeInst.
|
checkConnectivity, getArcById, getArcIndexByArcId, getExport, getExportIndexByExportId, getInstCount, getInstCounts, getMaxArcId, getMaxExportChronIndex, getMaxNodeId, getNodeById, getNodeIndexByNodeId, getOldConnectivityMemorySize, getProvider, getTechUsages, hasNodeWithId, makeTechUsages, newInstance, pinUseCount, sameExports, toString, with, withRevisionDate
public boolean hasConnectionsOnNode(ImmutableNodeInst n)
CellRevision
hasConnectionsOnNode
in class CellRevision
n
- specified ImmutableNodeInstpublic int getNumConnectionsOnNode(ImmutableNodeInst n)
getNumConnectionsOnNode
in class CellRevision
n
- specified ImmutableNodeInstpublic java.util.List<ImmutableArcInst> getConnectionsOnNode(java.util.BitSet headEnds, ImmutableNodeInst n)
CellRevision
getConnectionsOnNode
in class CellRevision
headEnds
- true if i-th arc connects by head endn
- specified ImmutableNodeInstpublic boolean hasConnectionsOnPort(ImmutableNodeInst n, PortProtoId portId)
hasConnectionsOnPort
in class CellRevision
n
- specified ImmutableNodeInstportId
- specified port or nulljava.lang.NullPointerException
- if n or portId is nullpublic int getNumConnectionsOnPort(ImmutableNodeInst n, PortProtoId portId)
getNumConnectionsOnPort
in class CellRevision
n
- specified ImmutableNodeInstportId
- specified port or nulljava.lang.NullPointerException
- if n or portId is nullIllegalArgumetException
- if node inst is not linked to this
CellRevisionpublic java.util.List<ImmutableArcInst> getConnectionsOnPort(java.util.BitSet headEnds, ImmutableNodeInst n, PortProtoId portId)
getConnectionsOnPort
in class CellRevision
headEnds
- true if i-th arc connects by head endn
- specified ImmutableNodeInstportId
- specified port or nulljava.lang.NullPointerException
- if n or portId is nullpublic boolean hasExportsOnNode(ImmutableNodeInst originalNode)
hasExportsOnNode
in class CellRevision
originalNode
- specified ImmutableNodeInst.public int getNumExportsOnNode(ImmutableNodeInst originalNode)
getNumExportsOnNode
in class CellRevision
originalNode
- specified ImmutableNodeInst.public java.util.Iterator<ImmutableExport> getExportsOnNode(ImmutableNodeInst originalNode)
getExportsOnNode
in class CellRevision
originalNode
- specified ImmutableNodeInst.public boolean hasExportsOnPort(ImmutableNodeInst originalNode, PortProtoId portId)
hasExportsOnPort
in class CellRevision
originalNode
- specified ImmutableNodeInst.portId
- specified portjava.lang.NullPointerException
- if n or portId is nullIllegalArgumetException
- if node inst is not linked to this
CellRevisionpublic int getNumExportsOnPort(ImmutableNodeInst originalNode, PortProtoId portId)
getNumExportsOnPort
in class CellRevision
originalNode
- specified ImmutableNodeInst.portId
- specified portjava.lang.NullPointerException
- if n or portId is nullIllegalArgumetException
- if node inst is not linked to this
CellRevisionpublic java.util.Iterator<ImmutableExport> getExportsOnPort(ImmutableNodeInst originalNode, PortProtoId portId)
getExportsOnPort
in class CellRevision
originalNode
- specified ImmutableNodeInst.portId
- specified portjava.lang.NullPointerException
- if n or portId is nullIllegalArgumetException
- if node inst is not linked to this
CellRevisionpublic long getConnectivityMemorySize(ObjSize objSize, boolean restore)
getConnectivityMemorySize
in class CellRevision
objSize
- ObjSDize in this JVM, or null to count objectsrestore
- restore connectivity data i fnecessary.public void check()
CellRevision
check
in class CellRevision