SIMLIB/C++
3.07
|
Relay this implementation detects exact time of switch. More...
#include <simlib.h>
Public Member Functions | |
Relay (Input i, double p1, double p2, double p3, double p4, double y1, double y2) | |
relay constructor More... | |
virtual void | Eval () override |
block evaluation More... | |
![]() | |
Status (Input i, double initvalue=0) | |
~Status () | |
void | Init (double initvalue) |
set initial value More... | |
void | Init () |
void | Set (double value) |
set state variable value (step change) More... | |
virtual double | Value () override |
value of state variable More... | |
void | Save () |
void | Restore () |
void | SetState (double s) |
double | GetState (void) |
void | SetOldState (double s) |
double | GetOldState (void) |
void | SetValid (bool flag) |
![]() | |
aContiBlock1 (Input i) | |
constructor for blocks with single input More... | |
double | InputValue () |
![]() | |
aContiBlock () | |
virtual void | _Eval () |
evaluate block (with loop detection) More... | |
![]() | |
bool | TestAndSetFlag (bool new_value, unsigned n) |
internal method for flag manipulation is used for algebraic loop checking in continuous blocks More... | |
SimObject () | |
constructor More... | |
virtual | ~SimObject () |
virtual destructor More... | |
void * | operator new (size_t size) |
allocate object, set _flags More... | |
void | operator delete (void *ptr) |
deallocate object More... | |
void * | operator new[] (size_t size)=delete |
void | operator delete[] (void *ptr)=delete |
bool | isAllocated () const |
virtual std::string | Name () const |
get object name More... | |
bool | HasName () const |
void | SetName (const std::string &name) |
assign the name More... | |
virtual void | Output () const |
print object to default output More... | |
Protected Attributes | |
double | p1 |
double | p2 |
double | p3 |
double | p4 |
double | y1 |
double | y2 |
![]() | |
double | initval |
initial value More... | |
bool | ValueOK |
StatusContainer::iterator | it_list |
position in list of status variables More... | |
![]() | |
bool | isEvaluated |
![]() | |
unsigned | _flags |
bool flags for internal use (TODO bitfield?) More... | |
Additional Inherited Members | |
![]() | |
enum | _Flags { _CLEAR_ALL_FLAGS = 0, _ALLOCATED_FLAG = 1<<0, _EVAL_FLAG = 1<<1, _HAS_NAME_FLAG = 1<<2 } |
![]() | |
double | st |
status More... | |
double | stl |
status from previous step More... | |
![]() | |
void | CtrInit () |
simlib3::Relay::Relay | ( | Input | i, |
double | p1, | ||
double | p2, | ||
double | p3, | ||
double | p4, | ||
double | y1, | ||
double | y2 | ||
) |
|
overridevirtual |
block evaluation
Reimplemented from simlib3::Status.
Definition at line 229 of file stdblock.cc.
References simlib3::ContractStep(), simlib3::SimObject::HasName(), simlib3::aContiBlock1::InputValue(), simlib3::SimObject::Name(), p1, p2, p3, p4, simlib3::SIMLIB_create_tmp_name(), simlib3::Status::st, simlib3::Status::stl, simlib3::Status::ValueOK, y1, and y2.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |