jq.qde.space
Class VariableQuantitySpace
java.lang.Object
jq.qde.space.VariableQuantitySpace
- All Implemented Interfaces:
- Abbrevable, QuantitySpace
- public class VariableQuantitySpace
- extends java.lang.Object
- implements QuantitySpace, Abbrevable
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
variable
public final QualitativeVariable variable
VariableQuantitySpace
public VariableQuantitySpace(QualitativeVariable var,
java.lang.String[] lms)
VariableQuantitySpace
public VariableQuantitySpace(QualitativeVariable var,
MagnitudeLandmark[] lms)
addAfter
public QuantitySpace addAfter(MagnitudeLandmark prevLM,
MagnitudeLandmark newLM)
- Specified by:
addAfter
in interface QuantitySpace
landmarkIterator
public java.util.Iterator landmarkIterator()
- Specified by:
landmarkIterator
in interface QuantitySpace
landmarkListIterator
public java.util.ListIterator landmarkListIterator()
- Specified by:
landmarkListIterator
in interface QuantitySpace
getLandmarkValue
public MagnitudeLandmark getLandmarkValue(java.lang.String name)
- Specified by:
getLandmarkValue
in interface QuantitySpace
lessThan
public boolean lessThan(MagnitudeLandmark value,
MagnitudeLandmark high)
- Specified by:
lessThan
in interface QuantitySpace
getQValueCount
public int getQValueCount()
- Specified by:
getQValueCount
in interface QuantitySpace
getQValue
public QualitativeMagnitude getQValue(int index)
- Specified by:
getQValue
in interface QuantitySpace
printSpecification
public void printSpecification(java.io.PrintStream out,
java.lang.String prefix)
- Specified by:
printSpecification
in interface QuantitySpace
compare
public QualitativeDirection compare(QualitativeMagnitude magnitude,
QualitativeMagnitude landmark)
- Specified by:
compare
in interface QuantitySpace
getSign
public QualitativeDirection getSign(QualitativeMagnitude magnitude)
- Specified by:
getSign
in interface QuantitySpace
isNegative
public boolean isNegative(QualitativeMagnitude mag)
- Specified by:
isNegative
in interface QuantitySpace
isPositive
public boolean isPositive(QualitativeMagnitude mag)
- Specified by:
isPositive
in interface QuantitySpace
isLowEnd
public boolean isLowEnd(QualitativeMagnitude magnitude)
- Specified by:
isLowEnd
in interface QuantitySpace
isHighEnd
public boolean isHighEnd(QualitativeMagnitude magnitude)
- Specified by:
isHighEnd
in interface QuantitySpace
shiftMagnitude
public QualitativeMagnitude shiftMagnitude(QualitativeMagnitude mag,
int i)
- Specified by:
shiftMagnitude
in interface QuantitySpace
getQSpaceIndex
public int getQSpaceIndex(QualitativeMagnitude mag)
- Specified by:
getQSpaceIndex
in interface QuantitySpace
isDiverging
public boolean isDiverging(QualitativeValue v)
- Specified by:
isDiverging
in interface QuantitySpace
isEnd
public boolean isEnd(QualitativeMagnitude mag)
- Specified by:
isEnd
in interface QuantitySpace
toSpecification
public java.lang.String toSpecification()
- Specified by:
toSpecification
in interface Abbrevable
toAbbreviation
public java.lang.String toAbbreviation()
- Specified by:
toAbbreviation
in interface Abbrevable
getLandmarkCount
public int getLandmarkCount()
contains
public boolean contains(MagnitudeLandmark landmark)