Class DataMapper.BaseDataUnit
- java.lang.Object
-
- de.iip_ecosphere.platform.services.environment.DataMapper.BaseDataUnit
-
- Enclosing class:
- DataMapper
public abstract static class DataMapper.BaseDataUnit extends java.lang.ObjectBase class to represent all potential inputs to the service and the JSON input format. Just defines the meta attributes (thus $ prefixes), needs to be refined with actual attributes by using class.- Author:
- Holger Eichelberger, SSE
-
-
Constructor Summary
Constructors Constructor Description BaseDataUnit()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intget$period()Returns the delay period between this and the next data unit.intget$repeats()Returns the number of repeats of this data unit.voidset$period(int $period)Changes the delay period between this and the next data unit.voidset$repeats(int $repeats)Changes the number of repeats of this data unit.
-
-
-
Method Detail
-
get$period
public int get$period()
Returns the delay period between this and the next data unit.- Returns:
- the period in ms, use default/last value if zero or negative
-
get$repeats
public int get$repeats()
Returns the number of repeats of this data unit.- Returns:
- the number of repeats, negative for infinite
-
set$period
public void set$period(int $period)
Changes the delay period between this and the next data unit.- Parameters:
$period- the period in ms, default/last value if zero or negative
-
set$repeats
public void set$repeats(int $repeats)
Changes the number of repeats of this data unit.- Parameters:
$repeats- the number of repeats, negative for infinite
-
-