public class FixedValuePerturbation extends AbstractPerturbation
| 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) |
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).
|
applypublic 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)
LogicalModelPerturbationstate - the state to be restrictednodeOrder - the ordered list of components in the statepublic void update(LogicalModel model)
LogicalModelPerturbationmodel - the modified modelpublic boolean affectsNode(NodeInfo node)
LogicalModelPerturbationnode - a component of the modelCopyright © 2012-2017. All Rights Reserved.