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

#include <basic_actions.h>

Inheritance diagram for GMInvoker:
Collaboration diagram for GMInvoker:

Public Member Functions

 GMInvoker (Agent *ag)
 
void init (double t)
 
void run (double t, double dt, double alpha)
 
- 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 void finalize ()
 
virtual char * name ()
 
void set_name (const char *name)
 
virtual void print (FILE *f)
 
virtual void print_toposort (FILE *f)
 
virtual void schedule ()
 

Private Attributes

Agentagent
 

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 88 of file basic_actions.h.

Constructor & Destructor Documentation

GMInvoker ( Agent ag)

Definition at line 135 of file basic_actions.C.

References Action::set_attr(), and Action::set_io().

135  :
136  Action( 0, (const char**)NULL, NULL, NULL, (char *)"GMInvoker"),
137  agent(ag)
138 {
139  set_io( 0, NULL);
140  set_attr(0, (const char**)NULL);
141 }
Agent * agent
Definition: basic_actions.h:94
void set_io(int n, const int *io)
Definition: Action.h:70
Action(void *p=0, char *name=NULL)
Definition: Action.C:32
void set_attr(int n, const std::string at[], int *id=NULL)
Definition: Action.C:66

Here is the call graph for this function:

Member Function Documentation

void init ( double  t)
virtual

Reimplemented from Action.

Definition at line 143 of file basic_actions.C.

References agent, and Agent::init_gmactions().

143  {
144  // init bcactions
145  agent->init_gmactions(t);
146 }
Agent * agent
Definition: basic_actions.h:94
void init_gmactions(double t)
Definition: Agent.C:451

Here is the call graph for this function:

void run ( double  t,
double  dt,
double  alpha 
)
virtual

Reimplemented from Action.

Definition at line 148 of file basic_actions.C.

References agent, Agent::get_agent_name(), MAN_DEBUG, and Agent::obtain_gm().

148  {
149  MAN_DEBUG(3, ("Rocstar: GMInvoker::run() agent: %s with alpha=%e.\n", agent->get_agent_name().c_str(), alpha));
150 
151  agent->obtain_gm(&alpha);
152 
153  MAN_DEBUG(3, ("Rocstar: GMInvoker::run() agent: %s with alpha=%e DONE.\n", agent->get_agent_name().c_str(), alpha));
154 }
Agent * agent
Definition: basic_actions.h:94
std::string get_agent_name() const
Definition: Agent.h:223
void obtain_gm(double *da)
Definition: Agent.C:543
#define MAN_DEBUG(l, x)
Definition: rocman.h:98

Here is the call graph for this function:

Member Data Documentation

Agent* agent
private

Definition at line 94 of file basic_actions.h.

Referenced by init(), and run().


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