Package communications.message
Class ClearingTimes
- java.lang.Object
-
- de.dlr.gitlab.fame.communication.message.DataItem
-
- communications.message.ClearingTimes
-
public class ClearingTimes extends de.dlr.gitlab.fame.communication.message.DataItem
Transfers 1..N TimeStamps- Author:
- Christoph Schimeczek, A. Achraf El Ghazi
-
-
Constructor Summary
Constructors Constructor Description ClearingTimes(de.dlr.gitlab.fame.protobuf.Agent.ProtoDataItem proto)
Mandatory for deserialisation ofDataItem
sClearingTimes(de.dlr.gitlab.fame.time.TimeStamp... times)
Constructs a newClearingTimes
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
fillDataFields(de.dlr.gitlab.fame.protobuf.Agent.ProtoDataItem.Builder builder)
List<de.dlr.gitlab.fame.time.TimeStamp>
getTimes()
-
-
-
Constructor Detail
-
ClearingTimes
public ClearingTimes(de.dlr.gitlab.fame.time.TimeStamp... times)
Constructs a newClearingTimes
- Parameters:
times
- any (positive) amount ofTimeStamp
s to be transfered- Throws:
RuntimeException
- if no TimeStamp at all is provided
-
ClearingTimes
public ClearingTimes(de.dlr.gitlab.fame.protobuf.Agent.ProtoDataItem proto)
Mandatory for deserialisation ofDataItem
s- Parameters:
proto
- protobuf representation
-
-
Method Detail
-
fillDataFields
protected void fillDataFields(de.dlr.gitlab.fame.protobuf.Agent.ProtoDataItem.Builder builder)
- Specified by:
fillDataFields
in classde.dlr.gitlab.fame.communication.message.DataItem
-
getTimes
public List<de.dlr.gitlab.fame.time.TimeStamp> getTimes()
- Returns:
- List of TimeStamps
-
-