Class V
java.lang.Object
org.proforma.variability.transfer.V
- All Implemented Interfaces:
Serializable
,Comparable<V>
A V
object is a variant, i. e. a possible
value taken by a variation point.
A variant can be represented as a specification, that has to be resolved before materializing a task or an artifact, or as a value.
Variant objects belong to a variation point.
Usually a template specification defines several possible values
for each variation point. The possible values are defined either by
a set of V
objects or by a set of value ranges represented by
a first and a last V
object.
The V
objects have a type that is taken from the
associated variation point. There are interval scaled and nominal
scaled variants (see Vis
and Vns
).
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract V
clone()
org.proforma.variability.transfer.VarSpecNode.DefRefCollector
int
static Object
convertToSpec
(Vp vp, Object value) static Object
convertToValue
(Vp vp, Object spec) abstract double
distanceTo
(V choice) abstract boolean
static V
static V
static V
fromString
(String s) static V
static V
abstract Object
getSpec()
abstract Class<?>
protected abstract Character
abstract Object
getValue()
abstract Class<?>
getVp()
This is available after push... having been calledabstract int
hashCode()
abstract boolean
abstract boolean
isSpec()
abstract boolean
isValue()
static String
void
final void
setParent
(VarSpecNode parent) protected void
abstract V
abstract V
toString()
-
Constructor Details
-
V
public V()
-
-
Method Details
-
getVp
This is available after push... having been called -
setVp
-
clone
-
collectDefRefs
public org.proforma.variability.transfer.VarSpecNode.DefRefCollector collectDefRefs() -
setParent
-
pushInheritedCVpToChildren
-
getSpec
-
getSpecType
-
getValue
-
getValueType
-
isSpec
public abstract boolean isSpec() -
isValue
public abstract boolean isValue() -
switchToSpec
-
switchToValue
-
getSpecTypeSymbol
-
distanceTo
-
isIntervalScaled
public abstract boolean isIntervalScaled() -
hashCode
public abstract int hashCode() -
equals
-
toString
-
toString
-
nullToString
-
fromString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<V>
-
fromSpec
-
fromSpec
-
fromValue
-
fromValue
-
convertToValue
-
convertToSpec
-