public class FixedValuePerturbation extends Object implements LogicalModelPerturbation
| Constructor and Description |
|---|
FixedValuePerturbation(NodeInfo target)
Create a simple KO perturbation.
|
FixedValuePerturbation(NodeInfo target,
int value)
Create a simple perturbation to fix the value of a component.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
affectsNode(NodeInfo node)
Test if the perturbation affects the function of a specific node
|
boolean |
equals(Object o) |
String |
getStringRepresentation() |
void |
restrictValues(byte[] state,
List<NodeInfo> nodeOrder)
Apply the perturbation(s) directly to a state, i.e., restricts the values
of the state in the valid range of the perturbation(s).
|
String |
toString() |
void |
update(LogicalModel model)
Apply the perturbation to a model directly (do not create a modified model).
|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplypublic final int value
public final NodeInfo component
public FixedValuePerturbation(NodeInfo target)
target - the blocked component.public FixedValuePerturbation(NodeInfo target, int value)
target - the blocked componentvalue - the fixed valuepublic void restrictValues(byte[] state,
List<NodeInfo> nodeOrder)
LogicalModelPerturbationrestrictValues in interface LogicalModelPerturbationstate - the state to be restrictednodeOrder - the ordered list of components in the statepublic void update(LogicalModel model)
LogicalModelPerturbationupdate in interface LogicalModelPerturbationmodel - the modified modelpublic boolean affectsNode(NodeInfo node)
LogicalModelPerturbationaffectsNode in interface LogicalModelPerturbationnode - a component of the modelpublic String getStringRepresentation()
getStringRepresentation in interface LogicalModelPerturbationCopyright © 2012–2020. All rights reserved.