DUECA/DUSIME
|
This is a module that can generate an overview of the activity (timelines) in a set of connected DUECA nodes. More...
Public Member Functions | |
ActivityView (Entity *e, const char *part, const PrioritySpec &ps) | |
Constructor. More... | |
~ActivityView () | |
Destructor. More... | |
bool | complete () final |
Completion, creates the window. More... | |
bool | setPositionAndSize (const std::vector< int > &ps) final |
Pre-define a position and size for the window. | |
void | updateLines (unsigned idlog) final |
Re-draw the display of activities. More... | |
void | cbClose (GtkButton *button, gpointer gp) |
Gtk window callbacks. More... | |
gboolean | deleteView (GtkWidget *window, GdkEvent *event, gpointer user_data) |
callback, close the view on deletion by window manager. More... | |
void | cbUpdate (GtkButton *button, gpointer gp) |
Collect new activity log data. More... | |
void | cbViewSpan (GtkWidget *spin, gpointer gp) |
Update view span. More... | |
void | cbRecordSpan (GtkWidget *spin, gpointer gp) |
Update record span. More... | |
int | cbViewScroll (GtkWidget *w, GdkEventButton *e, gpointer gp) |
Update view window after scrolling. More... | |
int | cbDraw (GtkWidget *w, cairo_t *cr, gpointer user_data) |
Redraw stuff. More... | |
int | cbConfigure (GtkWidget *w, GdkEventConfigure *event) |
realize widget stuff. More... | |
int | cbDrawAreaButtonPress (GtkWidget *w, GdkEventButton *ev) |
React to a button press on a drawing area, by starting a highlight. More... | |
int | cbDrawAreaButtonRelease (GtkWidget *w, GdkEventButton *ev) |
React to a button release on a drawing area, by completing a highlight. More... | |
![]() | |
ActivityViewBase (Entity *e, const char *part, const PrioritySpec &ps) | |
Constructor. More... | |
~ActivityViewBase () | |
Destructor. More... | |
void | startModule (const TimeSpec &time) |
Start the viewer, not used, since it will always work. More... | |
void | stopModule (const TimeSpec &time) |
Stop the viewer, not used. More... | |
void | readLogOwn (const TimeSpec &time) |
Re-draw the display of activities. More... | |
void | readLogOthers (const TimeSpec &time) |
Re-draw the display of activities. More... | |
void | updateLines (const ActivityLog *log) |
Re-draw the display of activities. More... | |
void | getActivityList (const TimeSpec &time) |
Read a list of activity descriptions. More... | |
void | sendSweepRequest (const TimeSpec &time) |
Send a request to sweep up logs. More... | |
void | triggerUpdate () |
Call for a measurement of the activities. More... | |
bool | setLookAhead (const double &ahead) |
Change the look-ahead time. More... | |
void | setSpan (double span) |
Change the span of the logs. More... | |
bool | isPrepared () |
Returns true if the module is prepared for starting. More... | |
const string32 & | getActivityName (int node, int acno) |
Return the name of an activity (if known) | |
void | processLog (const ActivityLog *log) |
Process a single log. | |
![]() | |
virtual | ~Module () |
Destructor. | |
virtual bool | isInitialPrepared () |
To check whether the module is prepared to be prepared. More... | |
ObjectType | getObjectType () const |
The object type within DUECA. | |
virtual void | initialStartModule (const TimeSpec &time) |
Initial start opportunity. More... | |
virtual void | finalStopModule (const TimeSpec &time) |
Final stop command. More... | |
const Entity * | getMyEntity () |
Return a pointer to the entity to which this module belongs. More... | |
const ModuleState & | getState () |
Return the module state. More... | |
![]() | |
const std::string | getEntity () const |
Returns the "entity" part of the name. | |
const std::string | getClass () const |
Returns the "class" part of the name. | |
const std::string | getPart () const |
Returns the sub-entity or "part" part of the name. | |
const NameSet & | getNameSet () const |
This returns the complete name set. | |
const GlobalId & | getId () const |
This returns the id. More... | |
Additional Inherited Members | |
![]() | |
static const ParameterTable * | getParameterTable () |
Table with adjustable parameters. More... | |
static ActivityViewBase * | single () |
Obtain a pointer to the singleton. More... | |
![]() | |
static const char *const | classname |
Name of the module class. More... | |
![]() | |
void | tokenValid (const TimeSpec &ts) |
Function on token completion. More... | |
void | requestDescriptionList (const TimeSpec &time) |
Request a list with descriptions from managers. More... | |
![]() | |
Module (const Entity *e, const char *m_class, const char *part) | |
Constructor. | |
virtual void | setSafetyStop () |
Put a brake on this module's activities. | |
![]() | |
NamedObject (const GlobalId &id) | |
Reserve for AssociateObject. More... | |
NamedObject (const NameSet &ns) | |
Normal constructor, protected, because it has no use to create a NamedObject by itself. | |
virtual | ~NamedObject () |
Destructor. | |
![]() | |
Callback< ActivityViewBase > | token_valid |
Function on token completion. | |
bool | token_action |
Flag to remember token completion. More... | |
bool | can_start |
Flag to indicate start possible. | |
ChannelWriteToken | send_request |
Access token for a channel over which log requests are sent. More... | |
ChannelReadToken | log_channel0 |
Access token for a channel with the incoming logs. More... | |
ChannelReadToken | log_channelO |
Access token for a channel with the incoming logs. More... | |
vector< ActivityWeaver > | current_logs |
A vector with the current logs. More... | |
Callback< ActivityViewBase > | cb1 |
Callback object 1, for processing log reports from local node. More... | |
Callback< ActivityViewBase > | cb2 |
Callback object 2, for processing log reports from elsewhere. More... | |
Callback< ActivityViewBase > | cb3 |
Callback object 3, for sending out a sweep-up request. More... | |
ActivityCallback | process_log_reports0 |
The activity that handles the incoming logs. More... | |
ActivityCallback | process_log_reportsO |
The activity that handles the incoming logs. More... | |
ActivityCallback | send_sweep_request |
Sweep up logs. More... | |
AperiodicAlarm | sweep_alarm |
Time for sweeping. More... | |
bool | sweep_done |
Flag to remember sweeping. More... | |
int | ticks_per_sec |
Number of clock ticks per second, needed to calculate look-ahead times. More... | |
int | lookahead |
The time to look ahead for requests (should be time needed for all requests to arrive) | |
TimeTickType | prev_request_end |
The time at which the previous request for activity information ends. More... | |
TimeTickType | first_base_tick |
Tick at which request has been sent. More... | |
TimeTickType | current_base_tick |
Tick at which current request has been / will be sent. More... | |
double | dspan |
Span of recording period, in seconds. More... | |
double | vspan |
Span of the view, in seconds. More... | |
ofstream | activity_log |
File for dumping activity logs. More... | |
HighLight | hl |
Details of the highlighted area. More... | |
HighLight | hlnew |
Details of a new highlighted area. More... | |
![]() | |
ModuleState | state |
Flag to remember whether we are stopped due to some error with hardware device manipulation. More... | |
![]() | |
static ActivityViewBase * | singleton |
singleton pointer, there can only be one view in an executable. More... | |
This is a module that can generate an overview of the activity (timelines) in a set of connected DUECA nodes.
This module can be created in the model script. See the description of TimingView for more information about how to set up the "dueca" part of the model script for your application.
dueca::ActivityView::ActivityView | ( | Entity * | e, |
const char * | part, | ||
const PrioritySpec & | ps | ||
) |
Constructor.
dueca::ActivityView::~ActivityView | ( | ) |
Destructor.
|
finalvirtual |
Completion, creates the window.
Implements dueca::ActivityViewBase.
|
finalvirtual |
Re-draw the display of activities.
Implements dueca::ActivityViewBase.
void dueca::ActivityView::cbClose | ( | GtkButton * | button, |
gpointer | gp | ||
) |
Gtk window callbacks.
Close the window.
gboolean dueca::ActivityView::deleteView | ( | GtkWidget * | window, |
GdkEvent * | event, | ||
gpointer | user_data | ||
) |
callback, close the view on deletion by window manager.
void dueca::ActivityView::cbUpdate | ( | GtkButton * | button, |
gpointer | gp | ||
) |
Collect new activity log data.
void dueca::ActivityView::cbViewSpan | ( | GtkWidget * | spin, |
gpointer | gp | ||
) |
Update view span.
void dueca::ActivityView::cbRecordSpan | ( | GtkWidget * | spin, |
gpointer | gp | ||
) |
Update record span.
int dueca::ActivityView::cbViewScroll | ( | GtkWidget * | w, |
GdkEventButton * | e, | ||
gpointer | gp | ||
) |
Update view window after scrolling.
int dueca::ActivityView::cbDraw | ( | GtkWidget * | w, |
cairo_t * | cr, | ||
gpointer | user_data | ||
) |
Redraw stuff.
int dueca::ActivityView::cbConfigure | ( | GtkWidget * | w, |
GdkEventConfigure * | event | ||
) |
realize widget stuff.
int dueca::ActivityView::cbDrawAreaButtonPress | ( | GtkWidget * | w, |
GdkEventButton * | ev | ||
) |
React to a button press on a drawing area, by starting a highlight.
int dueca::ActivityView::cbDrawAreaButtonRelease | ( | GtkWidget * | w, |
GdkEventButton * | ev | ||
) |
React to a button release on a drawing area, by completing a highlight.