Class FM2SimRunControlMessage.Builder
java.lang.Object
org.sim0mq.message.Sim0MQMessage.Builder<FM2SimRunControlMessage.Builder>
org.sim0mq.message.federationmanager.FM2SimRunControlMessage.Builder
- Enclosing class:
- FM2SimRunControlMessage
public static class FM2SimRunControlMessage.Builder
extends Sim0MQMessage.Builder<FM2SimRunControlMessage.Builder>
Builder for the SimRunControl Message. Can string setters together, and call build() at the end to build the actual
message.
Copyright (c) 2016-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See Sim0MQ License.
- Author:
- Alexander Verbraeck
-
Field Summary
Fields inherited from class org.sim0mq.message.Sim0MQMessage.Builder
federationId, messageId, messageTypeId, receiverId, senderId -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the object.setNumberReplications(int newNumberReplications) setOffsetTime(Time newOffsetTime) setOffsetTimeFloat(FloatTime newOffsetTime) setOffsetTimeNumber(Number newOffsetTime) setRunDuration(Duration newRunDuration) setRunDurationFloat(FloatDuration newRunDuration) setRunDurationNumber(Number newRunDuration) setSpeed(double newSpeed) setStreamMap(Map<Object, Long> newStreamMap) setWarmupDuration(Duration newWarmupDuration) setWarmupDurationFloat(FloatDuration newWarmupDuration) setWarmupDurationNumber(Number newWarmupDuration) Methods inherited from class org.sim0mq.message.Sim0MQMessage.Builder
setMessageId, setMessageTypeId, setReceiverId, setSenderId, setSimulationRunId
-
Constructor Details
-
Builder
public Builder()Empty constructor.
-
-
Method Details
-
setRunDurationNumber
- Parameters:
newRunDuration- set runDuration- Returns:
- the original object for chaining
-
setRunDuration
- Parameters:
newRunDuration- set runDuration- Returns:
- the original object for chaining
-
setRunDurationFloat
- Parameters:
newRunDuration- set runDuration- Returns:
- the original object for chaining
-
setWarmupDurationNumber
- Parameters:
newWarmupDuration- set warmupDuration- Returns:
- the original object for chaining
-
setWarmupDuration
- Parameters:
newWarmupDuration- set warmupDuration- Returns:
- the original object for chaining
-
setWarmupDurationFloat
public final FM2SimRunControlMessage.Builder setWarmupDurationFloat(FloatDuration newWarmupDuration) - Parameters:
newWarmupDuration- set warmupDuration- Returns:
- the original object for chaining
-
setOffsetTimeNumber
- Parameters:
newOffsetTime- set offsetTime- Returns:
- the original object for chaining
-
setOffsetTime
- Parameters:
newOffsetTime- set offsetTime- Returns:
- the original object for chaining
-
setOffsetTimeFloat
- Parameters:
newOffsetTime- set offsetTime- Returns:
- the original object for chaining
-
setSpeed
- Parameters:
newSpeed- set speed- Returns:
- the original object for chaining
-
setNumberReplications
- Parameters:
newNumberReplications- set numberReplications- Returns:
- the original object for chaining
-
setStreamMap
- Parameters:
newStreamMap- set streamMap- Returns:
- the original object for chaining
-
build
Description copied from class:Sim0MQMessage.BuilderBuild the object.- Specified by:
buildin classSim0MQMessage.Builder<FM2SimRunControlMessage.Builder>- Returns:
- the message object from the builder.
- Throws:
Sim0MQException- on unknown data typeNullPointerException- when one of the parameters is null
-