public static class BatchChanges.NodeReplacement
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
PortProtoId[] |
assoc |
CellId |
cellId |
PrimitiveNode.Function |
newFunction |
NodeProtoId |
newProtoId |
int |
nodeId |
Constructor and Description |
---|
BatchChanges.NodeReplacement(NodeInst ni,
NodeProto newProto,
PrimitiveNode.Function newFunction,
EPoint newSize)
Constructs an object that represents a task to replace proto of node instance
|
Modifier and Type | Method and Description |
---|---|
NodeInst |
getOldNi(EDatabase database)
Returns NodeInst to be replaced
|
ImmutableNodeInst |
newImmutableInst(Snapshot snapshot,
EditingPreferences ep) |
void |
setAssoc(PortInst oldPi,
PortInst newPi) |
public final CellId cellId
public final int nodeId
public final NodeProtoId newProtoId
public final PrimitiveNode.Function newFunction
public final PortProtoId[] assoc
public BatchChanges.NodeReplacement(NodeInst ni, NodeProto newProto, PrimitiveNode.Function newFunction, EPoint newSize)
ni
- NodeInst to replacenewProto
- new NodeProtopublic NodeInst getOldNi(EDatabase database)
public ImmutableNodeInst newImmutableInst(Snapshot snapshot, EditingPreferences ep)