Browse Source

explicit.StateValues: add complement() method (for boolean vectors)

git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@11170 bbc10eb1-c90d-0410-af57-cb519fbb1720
master
Joachim Klein 10 years ago
parent
commit
802abccbce
  1. 12
      prism/src/explicit/StateValues.java

12
prism/src/explicit/StateValues.java

@ -468,6 +468,18 @@ public class StateValues implements StateVector
valuesB.and(sv.valuesB);
}
/**
* Complement the (boolean) vector.
*/
public void complement() throws PrismException
{
if (!(type instanceof TypeBool)) {
throw new PrismException("Can only complement Boolean vectors");
}
valuesB.flip(0, size);
}
/**
* Modify the vector by applying 'equals' with operand {@code sv}.
*/

Loading…
Cancel
Save