Class SmlPosition
- java.lang.Object
-
- org.n52.shetland.ogc.swe.SweAbstractDataComponent
-
- org.n52.shetland.ogc.sensorML.elements.SmlPosition
-
- All Implemented Interfaces:
Copyable<SweAbstractDataComponent>,HasDefaultEncoding<SweAbstractDataComponent>
public class SmlPosition extends SweAbstractDataComponent
SOS internal representation of SensorML position- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description SmlPosition()default constructorSmlPosition(String name, boolean fixed, String referenceFrame, List<SweCoordinate<? extends Number>> position)constructorSmlPosition(CodeType name, boolean fixed, String referenceFrame, List<SweCoordinate<? extends Number>> position)constructor
-
Method Summary
-
Methods inherited from class org.n52.shetland.ogc.swe.SweAbstractDataComponent
addName, addName, addName, equals, getDefaultElementEncoding, getDefinition, getDescription, getIdentifier, getLabel, getName, getNames, getXml, hashCode, isSetDefinition, isSetDescription, isSetIdentifier, isSetLabel, isSetName, isSetNames, isSetXml, setDefaultElementEncoding, setDefinition, setDescription, setIdentifier, setLabel, setName, setName, setName, setXml
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.n52.shetland.ogc.HasDefaultEncoding
isSetDefaultElementEncoding
-
-
-
-
Constructor Detail
-
SmlPosition
public SmlPosition()
default constructor
-
SmlPosition
public SmlPosition(String name, boolean fixed, String referenceFrame, List<SweCoordinate<? extends Number>> position)
constructor- Parameters:
name- Position namefixed- is fixedreferenceFrame- Position reference frameposition- Position coordinates
-
SmlPosition
public SmlPosition(CodeType name, boolean fixed, String referenceFrame, List<SweCoordinate<? extends Number>> position)
constructor- Parameters:
name- Position namefixed- is fixedreferenceFrame- Position reference frameposition- Position coordinates
-
-
Method Detail
-
isFixed
public boolean isFixed()
- Returns:
- the fixed
-
setFixed
public SmlPosition setFixed(boolean fixed)
- Parameters:
fixed- the fixed to set- Returns:
- This object
-
getReferenceFrame
public String getReferenceFrame()
- Returns:
- the referenceFrame
-
setReferenceFrame
public SmlPosition setReferenceFrame(String referenceFrame)
- Parameters:
referenceFrame- the referenceFrame to set- Returns:
- This object
-
isSetReferenceFrame
public boolean isSetReferenceFrame()
-
getPosition
public List<? extends SweCoordinate<? extends Number>> getPosition()
- Returns:
- the position
-
setPosition
public SmlPosition setPosition(List<? extends SweCoordinate<? extends Number>> position)
- Parameters:
position- the position to set- Returns:
- This object
-
isSetPosition
public boolean isSetPosition()
-
getVector
public SweVector getVector()
-
setVector
public SmlPosition setVector(SweVector vector)
-
isSetVector
public boolean isSetVector()
-
getAbstractDataComponent
public SweAbstractDataComponent getAbstractDataComponent()
-
setAbstractDataComponent
public SmlPosition setAbstractDataComponent(SweAbstractDataComponent dataComponent)
-
isSetAbstractDataComponent
public boolean isSetAbstractDataComponent()
-
getDataComponentType
public SweConstants.SweDataComponentType getDataComponentType()
- Specified by:
getDataComponentTypein classSweAbstractDataComponent
-
accept
public <T,X extends Throwable> T accept(SweDataComponentVisitor<T,X> visitor) throws X extends Throwable
- Specified by:
acceptin classSweAbstractDataComponent- Throws:
X extends Throwable
-
accept
public <X extends Throwable> void accept(VoidSweDataComponentVisitor<X> visitor) throws X extends Throwable
- Specified by:
acceptin classSweAbstractDataComponent- Throws:
X extends Throwable
-
copy
public SmlPosition copy()
-
copyValueTo
public SweAbstractDataComponent copyValueTo(SweAbstractDataComponent copy)
Description copied from class:SweAbstractDataComponentCopies all values from thisSweAbstractDataComponentto the passed- Overrides:
copyValueToin classSweAbstractDataComponent- Parameters:
copy-SweAbstractDataComponentto copy values to- Returns:
- Copy of this
-
-