p3j.misc.errors
Class ProbabilityError

java.lang.Object
  extended by p3j.misc.errors.GeneratorError
      extended by p3j.misc.errors.ProbabilityError
All Implemented Interfaces:
Serializable

public class ProbabilityError
extends GeneratorError

An exception that represents an error with a set of probabilities. This happen if, e.g., it is 0 or doesn't sum up to 1. Created on January 21, 2007

Author:
Christina Bohk, Roland Ewald
See Also:
Serialized Form

Constructor Summary
ProbabilityError(boolean eqZero, String msg)
          Default constructor.
 
Method Summary
 boolean isEqualZero()
           
 
Methods inherited from class p3j.misc.errors.GeneratorError
getErrorMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProbabilityError

public ProbabilityError(boolean eqZero,
                        String msg)
Default constructor.

Parameters:
eqZero - flag that indicates the sum is equal to zero
msg - the message to be displayed to the user
Method Detail

isEqualZero

public boolean isEqualZero()


Copyright © 2012. All Rights Reserved.