Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UserSchedulerAction Class Reference

#include <Action.h>

Inheritance diagram for UserSchedulerAction:
Collaboration diagram for UserSchedulerAction:

Public Member Functions

 UserSchedulerAction (UserScheduler *s, int n, const char *at[], int i[], void *p=0, char *name=NULL)
 
virtual ~UserSchedulerAction ()
 
virtual void init (double t)
 
virtual void run (double t, double dt, double alpha)
 
virtual void finalize ()
 
virtual void print (FILE *f, char *container_name)
 
virtual void print_toposort (FILE *f)
 
virtual void schedule ()
 
- Public Member Functions inherited from Action
 Action (void *p=0, char *name=NULL)
 
 Action (int n, const char *at[], int *i=NULL, void *p=0, char *name=NULL)
 
 Action (int n, const std::string at[], int *i=NULL, void *p=0, char *name=NULL)
 
virtual ~Action ()
 
virtual void declare (Scheduler &)
 
virtual char * name ()
 
void set_name (const char *name)
 
virtual void print (FILE *f)
 

Private Attributes

UserSchedulersched
 

Additional Inherited Members

- Protected Types inherited from Action
enum  { IN =1, OUT =2, INOUT =3 }
 
- Protected Member Functions inherited from Action
int get_attribute_handle (int i)
 
int get_attribute_handle_const (int i)
 
int get_attribute_handle (const std::string str)
 
void set_attr (int n, const std::string at[], int *id=NULL)
 
void set_attr (int n, const char *at[], int *id=NULL)
 
void set_io (int n, const int *io)
 
void set_io (const char *io)
 
int get_io (int i)
 
- Protected Attributes inherited from Action
char * action_name
 
char ** attr
 
int * idx
 
int count
 
void * usr_ptr
 
std::vector< int > inout
 

Detailed Description

Definition at line 94 of file Action.h.

Constructor & Destructor Documentation

UserSchedulerAction ( UserScheduler s,
int  n,
const char *  at[],
int  i[],
void *  p = 0,
char *  name = NULL 
)
inline

Definition at line 99 of file Action.h.

99 : Action(n, at, i, p, name), sched(s) {}
virtual char * name()
Definition: Action.h:53
UserScheduler * sched
Definition: Action.h:97
blockLoc i
Definition: read.cpp:79
const NT & n
Action(void *p=0, char *name=NULL)
Definition: Action.C:32
~UserSchedulerAction ( )
virtual

Definition at line 174 of file Action.C.

References sched.

174  {
175  if ( sched) delete sched;
176 }
UserScheduler * sched
Definition: Action.h:97

Member Function Documentation

void finalize ( )
virtual

Reimplemented from Action.

Definition at line 193 of file Action.C.

References Scheduler::finalize_actions(), and sched.

194 {
196 }
UserScheduler * sched
Definition: Action.h:97
void finalize_actions()
Definition: Scheduler.C:351

Here is the call graph for this function:

void init ( double  t)
virtual

Reimplemented from Action.

Definition at line 178 of file Action.C.

References Scheduler::init_actions(), and sched.

179 {
180  sched->init_actions(t);
181 }
UserScheduler * sched
Definition: Action.h:97
void init_actions(double t)
Definition: Scheduler.C:324

Here is the call graph for this function:

void print ( FILE *  f,
char *  container_name 
)
virtual

Definition at line 198 of file Action.C.

References Action::name(), Scheduler::print(), and sched.

199 {
200  fprintf(f, "graph: { title: \"%s\" label: \"%s\" \n\
201  status: folded \n\
202  display_edge_labels: yes \n\
203  layoutalgorithm: tree \n\
204  scaling: maxspect \n\
205  color : red \n\
206  node.color : black \n\
207  node.textcolor : red \n\
208  node.bordercolor: black \n\
209  node.borderwidth: 1 \n\
210  edge.color : lightblue \n\
211  edge.arrowsize : 7 \n\
212  edge.thickness : 2 \n\
213  edge.fontname:\"helvO08\" \n\
214  node.label: \"no type\" \n", name(), name());
215  sched->print(f, container_name);
216  fprintf(f, "}\n");
217 }
virtual char * name()
Definition: Action.h:53
void print(const char *fname)
Definition: Scheduler.C:244
UserScheduler * sched
Definition: Action.h:97

Here is the call graph for this function:

void print_toposort ( FILE *  f)
virtual

Reimplemented from Action.

Definition at line 219 of file Action.C.

References sched.

220 {
221  fprintf(f, "( ");
222  sched->print_toposort(f);
223  fprintf(f, ") ");
224 }
UserScheduler * sched
Definition: Action.h:97
void run ( double  t,
double  dt,
double  alpha 
)
virtual

Reimplemented from Action.

Definition at line 187 of file Action.C.

References Scheduler::run_actions(), sched, and Scheduler::set_alpha().

188 {
189  sched->set_alpha(alpha);
190  sched->run_actions(t, dt);
191 }
void set_alpha(double alpha)
Definition: Scheduler.h:44
UserScheduler * sched
Definition: Action.h:97
void run_actions(double t, double dt)
Definition: Scheduler.C:339

Here is the call graph for this function:

void schedule ( )
virtual

Reimplemented from Action.

Definition at line 183 of file Action.C.

References sched, and UserScheduler::schedule().

183  {
184  sched->schedule();
185 }
virtual void schedule()
Definition: Scheduler.C:408
UserScheduler * sched
Definition: Action.h:97

Here is the call graph for this function:

Member Data Documentation

UserScheduler* sched
private

Definition at line 97 of file Action.h.

Referenced by finalize(), init(), print(), print_toposort(), run(), schedule(), and ~UserSchedulerAction().


The documentation for this class was generated from the following files: