Class MipIdentificationSensor
java.lang.Object
de.iip_ecosphere.platform.configuration.defaultLib.MipIdentificationSensor
Support code for the MIP technology identification sensor.
Sensor commands can be created and sent directly or scheduled using a timer and
MipIdentificationSensor.MipTimerTask.- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classTask to send signals to MIP read async to PLC process. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic iip.datatypes.MipMqttInputcreateStartStopCommand(boolean start, String sensorId) Creates a start/stop command for a MIP reader.static StringformatDate(Date date) Formats a date in MIP style.static voidsendStartStopCommand(boolean start, String sensorId, de.iip_ecosphere.platform.services.environment.DataIngestors<iip.datatypes.MipMqttInput> ingestors) Sends a start/stop command to an MIP reader.
-
Field Details
-
DATE_PATTERN
- See Also:
-
-
Constructor Details
-
MipIdentificationSensor
public MipIdentificationSensor()
-
-
Method Details
-
formatDate
Formats a date in MIP style.- Parameters:
date- the date to be formatted- Returns:
- the formatted date
-
createStartStopCommand
Creates a start/stop command for a MIP reader.- Parameters:
start- start/switch on the sensor iftrue, stop/switch off the sensor iffalsesensorId- the id of the sensor to send the data to- Returns:
- the created command instance
-
sendStartStopCommand
public static void sendStartStopCommand(boolean start, String sensorId, de.iip_ecosphere.platform.services.environment.DataIngestors<iip.datatypes.MipMqttInput> ingestors) Sends a start/stop command to an MIP reader. [convenience]- Parameters:
start- start/switch on the sensor iftrue, stop/switch off the sensor iffalsesensorId- the id of the sensor to send the data toingestors- ingestors to send the command to
-