org.n52.oxf.serviceAdapters.sosMobile
Class ProcedureHistoryMember

java.lang.Object
  extended by org.n52.oxf.serviceAdapters.sosMobile.ProcedureHistoryMember

public class ProcedureHistoryMember
extends Object

Class represents a timestamp in a procedure history. This class was taken from the SOS service implementation

Author:
Christoph Stasch

Constructor Summary
ProcedureHistoryMember(net.opengis.sensorML.x101.EventListDocument.EventList.Member m)
           
ProcedureHistoryMember(String procIDp, com.vividsolutions.jts.geom.Point positionp, boolean isActivep, boolean isMobilep, Date timeStampp)
          constructor
 
Method Summary
 Date getDate()
          Returns the timeStamp of this history event
 String getName()
           
 com.vividsolutions.jts.geom.Point getPosition()
          Returns the position of the sensor at this history event
 String getProcID()
          Returns id of sensor of this history event
 boolean isActive()
          Returns true, if sensor is active, false otherwise
 boolean isMobile()
          Returns true, if sensor is mobile, false otherwise
static com.vividsolutions.jts.geom.Point parsePointPosition(net.opengis.swe.x101.PositionType xb_positionType)
          parses point position of SensorML system
 void setActive(boolean isActive)
          sets the isActive property
 void setDate(Date timeStamp)
          sets the timeStamp of this history event
 void setMobile(boolean isMobile)
          sets the isMobile property to the passed value
 void setName(String name)
           
 void setPosition(com.vividsolutions.jts.geom.Point position)
          sets the position of this sensor at the history event
 void setProcID(String procID)
          sets id of sensor of this history event
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProcedureHistoryMember

public ProcedureHistoryMember(String procIDp,
                              com.vividsolutions.jts.geom.Point positionp,
                              boolean isActivep,
                              boolean isMobilep,
                              Date timeStampp)
constructor

Parameters:
procIDp - id of sensor
positionp - position of sensor
isActivep - status of sensor (active or inactive)
isMobilep - mobility of sensor (mobile or fixed)
date - time stamp of event

ProcedureHistoryMember

public ProcedureHistoryMember(net.opengis.sensorML.x101.EventListDocument.EventList.Member m)
Parameters:
m -
Method Detail

isActive

public boolean isActive()
Returns true, if sensor is active, false otherwise

Returns:
Returns the isActive

setActive

public void setActive(boolean isActive)
sets the isActive property

Parameters:
isActive - the isActive to set

isMobile

public boolean isMobile()
Returns true, if sensor is mobile, false otherwise

Returns:
Returns the isMobile

setMobile

public void setMobile(boolean isMobile)
sets the isMobile property to the passed value

Parameters:
isMobile - the isMobile to set

getPosition

public com.vividsolutions.jts.geom.Point getPosition()
Returns the position of the sensor at this history event

Returns:
Returns the position

setPosition

public void setPosition(com.vividsolutions.jts.geom.Point position)
sets the position of this sensor at the history event

Parameters:
position - the position to set

getProcID

public String getProcID()
Returns id of sensor of this history event

Returns:
Returns the procID

setProcID

public void setProcID(String procID)
sets id of sensor of this history event

Parameters:
procID - the procID to set

getDate

public Date getDate()
Returns the timeStamp of this history event

Returns:
Returns the timeStamp

setDate

public void setDate(Date timeStamp)
sets the timeStamp of this history event

Parameters:
timeStamp - the timeStamp to set

getName

public String getName()
Returns:
the name

setName

public void setName(String name)
Parameters:
name - the name to set

parsePointPosition

public static com.vividsolutions.jts.geom.Point parsePointPosition(net.opengis.swe.x101.PositionType xb_positionType)
parses point position of SensorML system

Parameters:
xb_positionType - XMLBeans representation of position, which should represent point position of sensor system
Returns:
Returns JTS Point created from XMLBean
Throws:
OwsExceptionReport - if parsing of point position failed

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2005 - 2010 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.