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 class
AbstractSensor.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 Long
getId()
core.ScenarioElementType
getSEType()
void
initialize(Scenario scenario)
void
poke(dispatch.Dispatcher dispatcher, float timestamp)
abstract void
take_measurement(dispatch.Dispatcher dispatcher, float timestamp)
error.OTMErrorLog
to_jaxb()
void
validate_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:
getSEType
in interfacecore.InterfaceScenarioElement
-
getId
public final Long getId()
- Specified by:
getId
in interfacecore.InterfaceScenarioElement
-
to_jaxb
public error.OTMErrorLog to_jaxb()
- Specified by:
to_jaxb
in 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:
poke
in interfacedispatch.Pokable
-
-