Table of Contents

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

string

Seperator

The seperator between the data points.

public string Seperator

Field Value

string

Methods

Deregister(Message)

Deregisters a particular message from being tracked by the message writer if it exists.

public bool Deregister(Message msg)

Parameters

msg Message

The 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

msg Message

The message to register

filename string

The name of the file to name the message

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