org.problets.domain.model.variable
Class ValueDifference
java.lang.Object
org.problets.domain.line.AbstractLine
org.problets.domain.model.variable.ValueDifference
- All Implemented Interfaces:
- java.lang.Cloneable
public class ValueDifference
- extends AbstractLine
represents a difference between
the values of two AbstractVarModels.
- Author:
- Eric Thorstensen
Method Summary |
boolean |
equals(ValueDifference parameter)
Returns true if the current values of this ValueDifference
and the ValueDifference passed as parameter are different
and false otherwise |
static void |
main(java.lang.String[] args)
|
void |
print()
Prints all the fields of the class |
java.lang.String |
toString()
Returns only that which is entered into the log |
boolean |
valuesDifferent()
Returns true if the ValueDifference's previous and current
values are different and false otherwise. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ValueDifference
public ValueDifference(Value previous,
Value current,
java.lang.String name,
int lineNum)
valuesDifferent
public boolean valuesDifferent()
- Returns true if the ValueDifference's previous and current
values are different and false otherwise.
equals
public boolean equals(ValueDifference parameter)
- Returns true if the current values of this ValueDifference
and the ValueDifference passed as parameter are different
and false otherwise
main
public static void main(java.lang.String[] args)
toString
public java.lang.String toString()
- Description copied from class:
AbstractLine
- Returns only that which is entered into the log
- Specified by:
toString
in class AbstractLine
print
public void print()
- Description copied from class:
AbstractLine
- Prints all the fields of the class
- Specified by:
print
in class AbstractLine