45 ValueEvent(
const double v,
const double d): value(v), date(d) {};
A valueEvent of a load is composed of a value and a date.
Definition: ValueEvent.h:41
void setDate(const double)
set the value event date
Definition: ValueEvent.cpp:84
ValueEvent()
default constructor
Definition: ValueEvent.h:48
bool isActive(const double t) const
return true if the event is active at time t
Definition: ValueEvent.cpp:31
void xmlPrint(std::ostream &)
Print to an ostream.
Definition: ValueEvent.cpp:67
void setValue(const double)
set the value event value
Definition: ValueEvent.cpp:89
double getValue()
return the scalar value of the event
Definition: ValueEvent.cpp:36
double getDate() const
double get start time
Definition: ValueEvent.cpp:62
~ValueEvent()=default
destructor
friend std::ostream & operator<<(std::ostream &, ValueEvent)
print to an output stream in XML format.
Definition: ValueEvent.cpp:74
ValueEvent(const double v, const double d)
constructor with initial values
Definition: ValueEvent.h:45