Class ApplicationOutputs

Class Documentation

class ApplicationOutputs

The application outputs from a udp data packet.

Public Functions

ApplicationOutputs()

Constructor of the application outputs.

std::vector<bool> getEvalOutVector() const

Gets the state of the non safe cut-off paths.

Returns:

The state of the non safe cut-off paths.

void setEvalOutVector(const std::vector<bool> &eval_out_vector)

Set the state of the non safe cut-off paths.

Parameters:

eval_out_vector – The state of the non safe cut-off paths.

std::vector<bool> getEvalOutIsSafeVector() const

Gets if a cut-off path from the output paths is safe.

Returns:

If a cut-off path is safe.

void setEvalOutIsSafeVector(const std::vector<bool> &eval_out_is_safe_vector)

Sets if an cut-off path is safe.

Parameters:

eval_out_is_safe_vector – If a cut off path is safe.

std::vector<bool> getEvalOutIsValidVector() const

If the output path is valid.

Returns:

If the output path is valid.

void setEvalOutIsValidVector(const std::vector<bool> &eval_out_is_valid_vector)

Sets if an output path is valid.

Parameters:

eval_out_is_valid_vector – If an output path is valid.

std::vector<uint16_t> getMonitoringCaseVector() const

Gets the currently active monitoring case numbers.

Returns:

The monitoring case numbers.

void setMonitoringCaseVector(const std::vector<uint16_t> &monitoring_case_vector)

Sets the currently active monitoring case numbers.

Parameters:

monitoring_case_vector – The monitoring case numbers.

std::vector<bool> getMonitoringCaseFlagsVector() const

Gets if the corresponding monitoring case number is valid.

Returns:

If the monitoring case number is valid.

void setMonitoringCaseFlagsVector(const std::vector<bool> &monitoring_case_flags_vector)

Set is the corresponding monitoring case number is valid.

Parameters:

monitoring_case_flags_vector – If the monitoring case number is valid.

int8_t getSleepModeOutput() const

Gets the state of the sleep mode.

Returns:

The state of the sleep mode.

void setSleepModeOutput(const int8_t &sleep_mode_output)

Sets the state of the sleep mode.

Parameters:

sleep_mode_output – The state of the sleep mode.

bool getHostErrorFlagContaminationWarning() const

Gets if a contamination warning is present.

Returns:

if a contamination warning is present.

void setHostErrorFlagContaminationWarning(bool host_error_flag_contamination_warning)

Sets if a contamination warning is present.

Parameters:

host_error_flag_contamination_warning – If a contamination warning is present.

bool getHostErrorFlagContaminationError() const

Gets if a contamination error is present.

Returns:

If a contamination error is present.

void setHostErrorFlagContaminationError(bool host_error_flag_contamination_error)

Sets if a contamination error is present.

Parameters:

host_error_flag_contamination_error – If a contamination error is present.

bool getHostErrorFlagManipulationError() const

Gets if a manipulation error is present.

Returns:

if a manipulation error is present.

void setHostErrorFlagManipulationError(bool host_error_flag_manipulation_error)

Sets if a manipulation error is present.

Parameters:

host_error_flag_manipulation_error – If a manipulation error is present.

bool getHostErrorFlagGlare() const

Gets if glare is present.

Returns:

If glare is present.

void setHostErrorFlagGlare(bool host_error_flag_glare)

Sets if glare is present.

Parameters:

host_error_flag_glare – If glare is present.

bool getHostErrorFlagReferenceContourIntruded() const

Gets if a reference contour is intruded.

Returns:

If a reference contour is intruded.

void setHostErrorFlagReferenceContourIntruded(bool host_error_flag_reference_contour_intruded)

Sets if a reference contour is intruded.

Parameters:

host_error_flag_reference_contour_intruded – If a reference contour is intruded.

bool getHostErrorFlagCriticalError() const

Gets if a critical error is present.

Returns:

If a critical error is present.

void setHostErrorFlagCriticalError(bool host_error_flag_critical_error)

Sets if a critical error is present.

Parameters:

host_error_flag_critical_error – If a critical error is present.

int16_t getVelocity0() const

Gets the first linear velocity output.

Returns:

The first linear velocity output.

void setVelocity0(const int16_t &velocity_0)

Sets the first linear velocity output.

Parameters:

velocity_0 – The first linear velocity output.

int16_t getVelocity1() const

Gets the second linear velocity output.

Returns:

The second linear velocity output.

void setVelocity1(const int16_t &velocity_1)

Sets the second linear velocity output.

Parameters:

velocity_1 – The second linear velocity output.

bool getVelocity0Valid() const

Gets if the first linear velocity output is valid.

Returns:

If the first linear velocity output is valid.

void setVelocity0Valid(bool velocity_0_valid)

Sets if the first linear velocity output is valid.

Parameters:

velocity_0_valid – If the first linear velocity output is valid.

bool getVelocity1Valid() const

Gets if the second linear velocity output is valid.

Returns:

If the second linear velocity output is valid.

void setVelocity1Valid(bool velocity_1_valid)

Sets if the second linear velocity output is valid.

Parameters:

velocity_1_valid – If the second linear velocity output is valid.

bool getVelocity0TransmittedSafely() const

Gets if the first linear velocity output is transmitted safely.

Returns:

If the first linear velocity output is transmitted safely.

void setVelocity0TransmittedSafely(bool velocity_0_transmitted_safely)

Sets if the first linear velocity output is transmitted safely.

Parameters:

velocity_0_transmitted_safely – If the first linear velocity output is transmitted safely.

bool getVelocity1TransmittedSafely() const

Gets if the second linear velocity output is transmitted safely.

Returns:

if the second linear velocity output is transmitted safely.

void setVelocity1TransmittedSafely(bool velocity_1_transmitted_safely)

Sets if the second linear velocity output is transmitted safely.

Parameters:

velocity_1_transmitted_safely – if the second linear velocity output is transmitted safely.

std::vector<int16_t> getResultingVelocityVector() const

Gets the resulting velocity for each monitoring case table.

Returns:

The resulting velocity for each monitoring case table.

void setResultingVelocityVector(const std::vector<int16_t> &resulting_velocity_vector)

Sets the resulting velocity for each monitoring case table.

Parameters:

resulting_velocity_vector – The resulting velocity for each monitoring case table.

std::vector<bool> getResultingVelocityIsValidVector() const

Gets if the resulting velocities are valid.

Returns:

If the resulting velocities are valid.

void setResultingVelocityIsValidVector(const std::vector<bool> &resulting_velocity_is_valid_vector)

Sets if the resulting velocities are valid.

Parameters:

resulting_velocity_is_valid_vector – If the resulting velocities are valid.

bool getFlagsSleepModeOutputIsValid() const

Gets if the sleep mode is valid.

Returns:

If the sleep mode is valid.

void setFlagsSleepModeOutputIsValid(bool flags_sleep_mode_output_is_valid)

Sets if the sleep mode is valid.

Parameters:

flags_sleep_mode_output_is_valid – If the sleep mode is valid.

bool getFlagsHostErrorFlagsAreValid() const

Gets if the error flags are valid.

Returns:

If the error flags are valid.

void setFlagsHostErrorFlagsAreValid(bool flags_host_error_flags_are_valid)

Sets if the error flags are valid.

Parameters:

flags_host_error_flags_are_valid – If the error flags are valid.