Condition_Constant class
Contents
Description
This is a sub-class of the Condition class for the implementation of Constant conditions.
In a given time t, a constant condition value y is obtained as:

Where:
: Constant value
classdef Condition_Constant < Condition
Public properties
properties (SetAccess = public, GetAccess = public)
value double = double.empty; % constant condition value
end
Constructor method
methods
function this = Condition_Constant()
this = this@Condition(Condition.CONSTANT);
this.setDefaultProps();
end
end
Public methods: implementation of super-class declarations
methods
%------------------------------------------------------------------
function setDefaultProps(this)
this.value = 0;
end
%------------------------------------------------------------------
function val = getValue(this,~)
val = this.value;
end
end
end