Added UnsupportedOperationException to get()
@@ -113,7 +113,7 @@ public class RandomVariableArrayImplementation implements RandomVariableArray {
@Override
public double get(int pathOrState) {
- return 0;
+ throw new UnsupportedOperationException();
}
@Override
@@ -389,11 +389,13 @@ public class RandomVariableArrayImplementation implements RandomVariableArray {
@Override
public RandomVariableInterface barrier(RandomVariableInterface trigger, RandomVariableInterface valueIfTriggerNonNegative, RandomVariableInterface valueIfTriggerNegative) {
+ // barrier will become deprecated
throw new UnsupportedOperationException();
}
@Override
public RandomVariableInterface barrier(RandomVariableInterface trigger, RandomVariableInterface valueIfTriggerNonNegative, double valueIfTriggerNegative) {
+ // barrier will become deprecated
throw new UnsupportedOperationException();
}
