33 idx(NULL), count(0), usr_ptr(p)
37 Action::Action(
int n,
const char *at[],
int *
id,
void *p,
char *name): action_name(name), count(n), usr_ptr(p)
43 Action::Action(
int n,
const std::string at[],
int *
id,
void *p,
char *name): action_name(name), count(n), usr_ptr(p)
61 for (i=0; i<
count; i++)
attr[i] = strdup(at[i]);
63 for (i=0; i<
count; i++)
idx[i] =
id?
id[i]:0;
71 for (i=0; i<
count; i++)
attr[i] = strdup(at[i].c_str());
73 for (i=0; i<
count; i++)
idx[i] =
id?
id[i]:0;
89 fprintf(f,
"node: { title:\"%s\" label:\"%s\"}\n",
name(),
name());
95 +
"\" does not exist").c_str());
98 +
"\" does not exist").c_str());
105 +
"\" does not exist").c_str());
113 +
"\" does not exist").c_str());
145 fprintf(f,
"graph: { title: \"%s\" label: \"%s\" \n\
147 display_edge_labels: yes \n\
148 layoutalgorithm: tree \n\
149 scaling: maxspect \n\
151 node.color : black \n\
152 node.textcolor : red \n\
153 node.bordercolor: black \n\
154 node.borderwidth: 1 \n\
155 edge.color : lightblue \n\
156 edge.arrowsize : 7 \n\
157 edge.thickness : 2 \n\
158 edge.fontname:\"helvO08\" \n\
159 node.label: \"no type\" \n",
name(),
name());
200 fprintf(f,
"graph: { title: \"%s\" label: \"%s\" \n\
202 display_edge_labels: yes \n\
203 layoutalgorithm: tree \n\
204 scaling: maxspect \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());
222 sched->print_toposort(f);
virtual void run(double t, double dt, double alpha)
virtual ~SchedulerAction()
#define COM_assertion_msg(EX, msg)
virtual void declare(Scheduler &)
This file contains the prototypes for Roccom API.
int get_attribute_handle(int i)
int COM_get_attribute_handle(const char *waname)
virtual void print_toposort(FILE *f)
int get_attribute_handle_const(int i)
void set_alpha(double alpha)
void print_toposort(FILE *f)
virtual void print_toposort(FILE *f)
void writes(Action *, const char *attr, int idx)
void print(const char *fname)
void reads(Action *, const char *attr, int idx)
virtual void print(FILE *f, char *container_name)
virtual void init(double t)
virtual void init(double t)
int COM_get_attribute_handle_const(const char *waname)
virtual void print(FILE *f, char *container_name)
Action(void *p=0, char *name=NULL)
void set_attr(int n, const std::string at[], int *id=NULL)
void init_actions(double t)
void run_actions(double t, double dt)
virtual void run(double t, double dt, double alpha)
virtual ~UserSchedulerAction()
virtual void print(FILE *f)