public class ModelReducer extends Object
ReduceOperation to properly remove variables from models.| Constructor and Description |
|---|
ModelReducer(LogicalModel model) |
| Modifier and Type | Method and Description |
|---|---|
LogicalModel |
getModel()
Get a logical model for the modified functions.
|
LogicalModel |
getModel(boolean includeExtra) |
LogicalModel |
getModel(boolean preserveFixedInputs,
boolean includeExtra) |
void |
remove(int varIdx)
Remove a selected variable.
|
int |
removePseudoOutputs()
Find outputs and pseudo-outputs in the model and remove them all.
|
int |
removePseudoOutputs(boolean preserveFixedInputs)
Remove all (pseudo-)outputs from the model.
|
public ModelReducer(LogicalModel model)
public int removePseudoOutputs()
removePseudoOutputs(boolean)public int removePseudoOutputs(boolean preserveFixedInputs)
preserveFixedInputs - if true, inputs will not be preserved (not considered as pseudo outputs)public void remove(int varIdx)
varIdx - the index of the component to reducepublic LogicalModel getModel()
public LogicalModel getModel(boolean includeExtra)
public LogicalModel getModel(boolean preserveFixedInputs, boolean includeExtra)
Copyright © 2012–2020. All rights reserved.