Base class for nodes in the timeline. More...
#include <timeline.h>
Public Member Functions | |
double | getCumulativeConsumed () const |
double | getCumulativeProduced () const |
const Date & | getDate () const |
virtual double | getMax (bool inclusive=true) const |
virtual double | getMin (bool inclusive=true) const |
double | getOnhand () const |
virtual double | getQuantity () const |
virtual TimeLine< type > * | getTimeLine () const |
virtual unsigned short | getType () const =0 |
bool | operator< (const Event &fl2) const |
virtual | ~Event () |
Protected Member Functions | |
Event () | |
![]() | |
NonCopyable () | |
~NonCopyable () | |
Protected Attributes | |
double | cum_prod |
Date | dt |
Event * | next |
double | oh |
Event * | prev |
Friends | |
class | const_iterator |
class | iterator |
class | TimeLine< type > |
Base class for nodes in the timeline.
Definition at line 54 of file timeline.h.
|
inlineprotected |
Definition at line 65 of file timeline.h.
|
inlinevirtual |
Definition at line 68 of file timeline.h.
|
inline |
Return the total consumed quantity till the current date.
Definition at line 78 of file timeline.h.
|
inline |
Return the total produced quantity till the current date.
Definition at line 75 of file timeline.h.
|
inline |
Return the date of the event.
Definition at line 81 of file timeline.h.
|
inlinevirtual |
This functions returns the maximum boundary valid at the time of this event.
Reimplemented in frepple::utils::TimeLine< type >::EventMaxQuantity.
Definition at line 101 of file timeline.h.
|
inlinevirtual |
This functions returns the mimimum boundary valid at the time of this event.
Reimplemented in frepple::utils::TimeLine< type >::EventMinQuantity.
Definition at line 88 of file timeline.h.
|
inline |
Return the current onhand value.
Definition at line 72 of file timeline.h.
|
inlinevirtual |
Reimplemented in frepple::utils::TimeLine< type >::EventChangeOnhand.
Definition at line 69 of file timeline.h.
|
inlinevirtual |
Return a pointer to the owning timeline.
Reimplemented in frepple::LoadPlan, and frepple::FlowPlan.
Definition at line 84 of file timeline.h.
|
pure virtual |
|
inline |
First criterion is date: earlier dates come first.
Second criterion is the size: big events come first.
As a third tie-breaking criterion, we use a pointer comparison.
This garantuees us a fixed and unambiguous ordering.
As a side effect, this makes sure that producers come before consumers. This feature is required to avoid zero-time material shortages.
Definition at line 122 of file timeline.h.
|
friend |
Definition at line 57 of file timeline.h.
|
friend |
Definition at line 58 of file timeline.h.
|
friend |
Definition at line 56 of file timeline.h.
|
protected |
Definition at line 62 of file timeline.h.
|
protected |
Definition at line 60 of file timeline.h.
|
protected |
Definition at line 63 of file timeline.h.
|
protected |
Definition at line 61 of file timeline.h.
|
protected |
Definition at line 64 of file timeline.h.