Class MessageWriter
- Namespace
- NominalSystems.Messages
- Assembly
- NominalSystems.Messages.dll
A class that allows for writing messages to a CSV file and saving the data to file at the end of a simulation.
public class MessageWriter
- Inheritance
-
MessageWriter
Constructors
MessageWriter()
public MessageWriter()
Fields
Directory
The directory of the file that will be used for the message writer.
public string Directory
Field Value
Seperator
The seperator between the data points.
public string Seperator
Field Value
Methods
Deregister(Message)
Deregisters a particular message from being tracked by the message writer if it exists.
public bool Deregister(Message msg)
Parameters
msg
MessageThe message to remove
Returns
- bool
A success flag
Register(Message, string)
Registers a particular message from being tracked by the message writer if it exists.
public bool Register(Message msg, string filename)
Parameters
Returns
- bool
A success flag
Write(double)
Writes all registered messages to the file with the current file stamp, with some time.
public void Write(double time)
Parameters
time
double