public class DoubleDiscreteValueDomain extends Object implements IDiscreteValueDomain<Double>
Modifier and Type | Field and Description |
---|---|
(package private) String |
description
description of the valueDomain
|
(package private) List<Double> |
possibleValues
List with possible values
|
Constructor and Description |
---|
DoubleDiscreteValueDomain(Double[] possibleValues) |
DoubleDiscreteValueDomain(List<Double> possibleValues)
Constructor with discrete Values
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsValue(Double d)
tests whether a double value is contained in this valueDomain
|
String |
getDomainDescription()
gives a description of this ValueDomain
|
List<Double> |
getPossibleValues()
returns the discrete Values of the DoubleValueDomain
|
Double |
produceValue(String... stringArray) |
String |
toXML()
creates an XML-String of the ValueDomain
|
String description
public DoubleDiscreteValueDomain(List<Double> possibleValues)
possibleValues
- ArrayList with discrete Valuespublic DoubleDiscreteValueDomain(Double[] possibleValues)
public List<Double> getPossibleValues()
getPossibleValues
in interface IDiscreteValueDomain<Double>
public String getDomainDescription()
getDomainDescription
in interface IValueDomain<Double>
public boolean containsValue(Double d)
containsValue
in interface IValueDomain<Double>
d
- the value which has to be testedpublic String toXML()
toXML
in interface IValueDomain<Double>
public Double produceValue(String... stringArray)
produceValue
in interface IValueDomain<Double>
Copyright © 2012–2017 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.