replaceNodeInsts
public static void replaceNodeInsts(EDatabase database,
java.util.Collection<BatchChanges.NodeReplacement> replacements,
boolean allowMissingPorts,
boolean preserveParameters,
EditingPreferences ep)
Method to replace a batch of nodes "oldNi" with a new one of type "newNp". Also removes any node-specific variables.
- Parameters:
database
- replace nodes in this databasereplacements
- a batch of replacement tasksallowMissingPorts
- true to allow replacement to have missing ports and, therefore, delete the arcs that used to be there.preserveParameters
- true to keep parameters on the old node and put them on the new one.ep
- EditingPreferences