public class RangePerturbation extends Object implements LogicalModelPerturbation
| Constructor and Description |
|---|
RangePerturbation(NodeInfo target,
int min,
int max)
Create a range restriction.
|
| 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 min
public final int max
public final NodeInfo component
public RangePerturbation(NodeInfo target, int min, int max)
target - the restricted componentmin - the minimal value after perturbationmax - the max value after perturbationpublic 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 String getStringRepresentation()
getStringRepresentation in interface LogicalModelPerturbationpublic boolean affectsNode(NodeInfo node)
LogicalModelPerturbationaffectsNode in interface LogicalModelPerturbationnode - a component of the modelCopyright © 2012–2020. All rights reserved.