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

#include <basic_actions.h>

Inheritance diagram for BCInvoker:
Collaboration diagram for BCInvoker:

Public Member Functions

 BCInvoker (Agent *ag, int l=1)
 
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
 
int level
 

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

Constructor & Destructor Documentation

BCInvoker ( Agent ag,
int  l = 1 
)

Definition at line 112 of file basic_actions.C.

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

112  :
113  Action( 0, (const char**)NULL, NULL, NULL, (char *)"BCInvoker"),
114  agent(ag), level(l)
115 {
116  set_io( 0, NULL);
117  set_attr(0, (const char**)NULL);
118 }
void set_io(int n, const int *io)
Definition: Action.h:70
Agent * agent
Definition: basic_actions.h:84
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 120 of file basic_actions.C.

References agent, and Agent::init_bcactions().

120  {
121  // init bcactions
122  agent->init_bcactions(t);
123 }
Agent * agent
Definition: basic_actions.h:84
void init_bcactions(double t)
Definition: Agent.C:445

Here is the call graph for this function:

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

Reimplemented from Action.

Definition at line 125 of file basic_actions.C.

References agent, Agent::get_agent_name(), level, MAN_DEBUG, and Agent::obtain_bc().

125  {
126  MAN_DEBUG(3, ("Rocstar: BCInvoker::run() agent: %s level: %d.\n", agent->get_agent_name().c_str(), level));
127 
128 //RAF pass alpha, not time!!
129 // agent->obtain_bc(&t, &level);
130  agent->obtain_bc(&alpha, &level);
131 
132  MAN_DEBUG(3, ("Rocstar: BCInvoker::run() agent: %s level: %d DONE.\n", agent->get_agent_name().c_str(), level));
133 }
std::string get_agent_name() const
Definition: Agent.h:223
void obtain_bc(double *a, int *l=NULL)
Definition: Agent.C:524
Agent * agent
Definition: basic_actions.h:84
#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 84 of file basic_actions.h.

Referenced by init(), and run().

int level
private

Definition at line 85 of file basic_actions.h.

Referenced by run().


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