Class FM1StartFederateMessage.Builder
java.lang.Object
org.sim0mq.message.Sim0MQMessage.Builder<FM1StartFederateMessage.Builder>
org.sim0mq.message.federationmanager.FM1StartFederateMessage.Builder
- Enclosing class:
- FM1StartFederateMessage
public static class FM1StartFederateMessage.Builder
extends Sim0MQMessage.Builder<FM1StartFederateMessage.Builder>
Builder for the StartFederate 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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the object.setArgsAfter
(String newArgsAfter) setArgsBefore
(String newArgsBefore) setDeleteStderr
(boolean newDeleteStderr) setDeleteStdout
(boolean newDeleteStdout) setDeleteWorkingDirectory
(boolean newDeleteWorkingDirectory) setInstanceId
(String newInstanceId) setModelPath
(String newModelPath) setRedirectStderr
(String rewRedirectStderr) setRedirectStdin
(String newRedirectStdin) setRedirectStdout
(String newRedirectStdout) setSoftwareCode
(String newSoftwareCode) setWorkingDirectory
(String newWorkingDirectory) Methods inherited from class org.sim0mq.message.Sim0MQMessage.Builder
setMessageId, setMessageTypeId, setReceiverId, setSenderId, setSimulationRunId
-
Constructor Details
-
Builder
public Builder()Empty constructor.
-
-
Method Details
-
setInstanceId
- Parameters:
newInstanceId
- set instanceId- Returns:
- the original object for chaining
-
setSoftwareCode
- Parameters:
newSoftwareCode
- set softwareCode- Returns:
- the original object for chaining
-
setArgsBefore
- Parameters:
newArgsBefore
- set argsBefore- Returns:
- the original object for chaining
-
setModelPath
- Parameters:
newModelPath
- set modelPath- Returns:
- the original object for chaining
-
setArgsAfter
- Parameters:
newArgsAfter
- set argsAfter- Returns:
- the original object for chaining
-
setWorkingDirectory
- Parameters:
newWorkingDirectory
- set workingDirectory- Returns:
- the original object for chaining
-
setRedirectStdin
- Parameters:
newRedirectStdin
- set redirectStdin- Returns:
- the original object for chaining
-
setRedirectStdout
- Parameters:
newRedirectStdout
- set redirectStdout- Returns:
- the original object for chaining
-
setRedirectStderr
- Parameters:
rewRedirectStderr
- set redirectStderr- Returns:
- the original object for chaining
-
setDeleteWorkingDirectory
public final FM1StartFederateMessage.Builder setDeleteWorkingDirectory(boolean newDeleteWorkingDirectory) - Parameters:
newDeleteWorkingDirectory
- set deleteWorkingDirectory- Returns:
- the original object for chaining
-
setDeleteStdout
- Parameters:
newDeleteStdout
- set deleteStdout- Returns:
- the original object for chaining
-
setDeleteStderr
- Parameters:
newDeleteStderr
- set deleteStderr- Returns:
- the original object for chaining
-
build
Description copied from class:Sim0MQMessage.Builder
Build the object.- Specified by:
build
in classSim0MQMessage.Builder<FM1StartFederateMessage.Builder>
- Returns:
- the message object from the builder.
- Throws:
Sim0MQException
- on unknown data typeNullPointerException
- when one of the parameters is null
-