|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--nrc.fuzzy.FuzzyException | +--nrc.fuzzy.FuzzySetException | +--nrc.fuzzy.XValuesOutOfOrderException
The XValuesOutOfOrderException
class is thrown to indicate that
the x values in a FuzzySet that are not in strictly ascending order. This
exception is thrown almost exclusively by the FuzzySet constructors, which in
turn affects most methods that construct a new FuzzySet in the course of their
execution.
In the construction of an XValuesOutOfOrderException, the offending x value, and the x value previous to it will be stored in the exception. The methods getXValue and getPreviousXValue will return these values. These values will also appear in the exception message, should the user call the getMessage method.
FuzzySetException
,
Serialized FormConstructor Summary | |
XValuesOutOfOrderException(double prevValue,
double currentValue)
Constructs a new XValuesOutOfOrderException without a specific detail message. |
|
XValuesOutOfOrderException(double prevValue,
double currentValue,
java.lang.String message)
Constructs a new XValuesOutOfOrderException with a specific detail message appended to the default detail message. |
Method Summary | |
java.lang.String |
getMessage()
Returns the detail message to the user. |
double |
getPreviousXValue()
Returns the x value previous to the x value which is out of order. |
double |
getXValue()
Returns the offending x value. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public XValuesOutOfOrderException(double prevValue, double currentValue)
prevValue
- the x value previous to the x value which is out
of ordercurrentValue
- the x value which is out of orderpublic XValuesOutOfOrderException(double prevValue, double currentValue, java.lang.String message)
prevValue
- the x value previous to the x value which is out
of ordercurrentValue
- the x value which is out of ordermessage
- the specific detail messageMethod Detail |
public double getXValue()
public double getPreviousXValue()
getXValue
.
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |