SwitchDependVerClockGenerator.java
Go to the documentation of this file.
1 package com.generalrobotix.ui.depends.rtm;
2 
4 
5 public class SwitchDependVerClockGenerator extends ClockGeneratorRtm_impl{
6  public String getDependencyModuleName()
7  {
8  return new String("OpenRTM");
9  }
10 
14  public void resetClockReceivers(){
15  for (int i=0; i<ecs_.size();){
16  ExecutionContext ec = ecs_.get(i);
17  try{
18  System.out.println(i+": rate = "+ec.ec_.get_rate());
19  ec.reset();
20  i++;
21  }catch(Exception ex){
22  ecs_.remove(ec);
23  }
24  }
25  }
26 
27  public void updateExecutionContext(double simTime)
28  {
29  for (int i=0; i<ecs_.size();){
30  ExecutionContext ec = ecs_.get(i);
31  if (ec.execute(simTime)){
32  i++;
33  }else{
34  ecs_.remove(ec);
35  }
36  }
37  }
38 }
png_uint_32 i
Definition: png.h:2735
ec


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Thu Sep 8 2022 02:24:05