Package sensor
Class AbstractSensor
- java.lang.Object
-
- sensor.AbstractSensor
-
- All Implemented Interfaces:
core.InterfaceScenarioElement,dispatch.Pokable
public abstract class AbstractSensor extends Object implements dispatch.Pokable, core.InterfaceScenarioElement
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractSensor.Type
-
Constructor Summary
Constructors Constructor Description AbstractSensor(Long id, AbstractSensor.Type type, float dt)AbstractSensor(jaxb.Sensor jaxb_sensor)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description LonggetId()core.ScenarioElementTypegetSEType()voidinitialize(Scenario scenario)voidpoke(dispatch.Dispatcher dispatcher, float timestamp)abstract voidtake_measurement(dispatch.Dispatcher dispatcher, float timestamp)error.OTMErrorLogto_jaxb()voidvalidate_post_init(error.OTMErrorLog errorLog)
-
-
-
Field Detail
-
id
public Long id
-
type
public AbstractSensor.Type type
-
dt
public Float dt
-
dt_inv
public double dt_inv
-
target
public actuator.InterfaceTarget target
-
-
Constructor Detail
-
AbstractSensor
public AbstractSensor(Long id, AbstractSensor.Type type, float dt)
-
AbstractSensor
public AbstractSensor(jaxb.Sensor jaxb_sensor)
-
-
Method Detail
-
initialize
public void initialize(Scenario scenario) throws error.OTMException
- Throws:
error.OTMException
-
validate_post_init
public void validate_post_init(error.OTMErrorLog errorLog)
-
getSEType
public final core.ScenarioElementType getSEType()
- Specified by:
getSETypein interfacecore.InterfaceScenarioElement
-
getId
public final Long getId()
- Specified by:
getIdin interfacecore.InterfaceScenarioElement
-
to_jaxb
public error.OTMErrorLog to_jaxb()
- Specified by:
to_jaxbin interfacecore.InterfaceScenarioElement
-
take_measurement
public abstract void take_measurement(dispatch.Dispatcher dispatcher, float timestamp)
-
poke
public void poke(dispatch.Dispatcher dispatcher, float timestamp)- Specified by:
pokein interfacedispatch.Pokable
-
-