Classes | |
class | ClockGenerator_impl |
implementation of ClockGenerator interface More... | |
class | ControllerAttribute |
Public Member Functions | |
void | continueSimulation () |
boolean | create () |
void | delete () |
delete this item | |
void | endOfSimulation () |
int | gcd (int a, int b) |
DynamicsSimulator | getDynamicsSimulator (boolean update) |
ValueEditType | GetValueEditType (String key) |
Return editing type of the key item. | |
GrxSimulationItem (String name, GrxPluginManager manager) | |
boolean | initDynamicsSimulator () |
boolean | isSimulating () |
int | lcm (int a, int b) |
float | lcm (float a, float b) |
boolean | registerCORBA () |
void | restoreProperties () |
restore properties. Called by menu item "restore Properties" | |
void | shutdown () |
boolean | startSimulation (boolean isInteractive) |
void | stopSimulation () |
void | unregisterCORBA () |
void | waitStopSimulation () throws InterruptedException |
Static Public Attributes | |
static final String | TITLE = "Simulation" |
Package Functions | |
void | execSWT (Runnable r, boolean execInCurrentThread) |
String | updateTimeMsg () |
Package Attributes | |
String | timeMsg_ |
Private Member Functions | |
Thread | _createSimulationThread () |
ControllerAttribute | _getController (String localID) |
ControllerAttribute | _getControllerFromControllerName (String controllerName) |
void | _refreshControllers (List< String > refStrList) |
boolean | _setupController (GrxModelItem model, ControllerAttribute deactivatedController) |
boolean | extendTime () |
boolean | initController () |
boolean | simulateOneStep () |
simulate one step | |
Private Attributes | |
List< ControllerAttribute > | controllers_ = new ArrayList<ControllerAttribute>() |
SensorStateHolder | cStateH_ = new SensorStateHolder() |
DynamicsSimulator | currentDynamics_ |
GrxWorldStateItem | currentWorld_ |
boolean | isExecuting_ = false |
boolean | isIntegrate_ = true |
boolean | isInteractive_ = true |
boolean | isRealTime_ = false |
boolean | isSimulatingView_ |
boolean | isSuspending_ = false |
Object | lock2_ = new Object() |
Object | lock3_ = new Object() |
Object | lock_ = new Object() |
double | logStepTime_ = 0.05 |
List< String > | robotEntry_ = new ArrayList<String>() |
Thread | simThread_ |
int | simThreadState_ = EXEC |
double | simTime_ = 0.0 |
double | simulateTime_ = 0 |
WorldStateHolder | stateH_ = new WorldStateHolder() |
double | stepTime_ = 0.001 |
double | totalTime_ = 20 |
Grx3DView | view3D |
double | viewSimulationStep_ = 0 |
boolean | viewSimulationUpdate_ = false |
WorldStateEx | wsx_ = null |
Static Private Attributes | |
static ClockGenerator_impl | clockGenerator_ = null |
static final int | EXEC = -1 |
static final String | FORMAT1 = "%8.3f" |
static final int | INTERRUPT = 2 |
static final int | interval_ = 10 |
static final int | STOP = 1 |
static final int | TIMEOVER = 0 |
static final int | WAIT_COUNT_ = 4 |
Definition at line 74 of file GrxSimulationItem.java.
com.generalrobotix.ui.item.GrxSimulationItem.GrxSimulationItem | ( | String | name, |
GrxPluginManager | manager | ||
) | [inline] |
Definition at line 106 of file GrxSimulationItem.java.
Thread com.generalrobotix.ui.item.GrxSimulationItem._createSimulationThread | ( | ) | [inline, private] |
Definition at line 297 of file GrxSimulationItem.java.
ControllerAttribute com.generalrobotix.ui.item.GrxSimulationItem._getController | ( | String | localID | ) | [inline, private] |
Definition at line 775 of file GrxSimulationItem.java.
ControllerAttribute com.generalrobotix.ui.item.GrxSimulationItem._getControllerFromControllerName | ( | String | controllerName | ) | [inline, private] |
Definition at line 786 of file GrxSimulationItem.java.
void com.generalrobotix.ui.item.GrxSimulationItem._refreshControllers | ( | List< String > | refStrList | ) | [inline, private] |
Definition at line 798 of file GrxSimulationItem.java.
boolean com.generalrobotix.ui.item.GrxSimulationItem._setupController | ( | GrxModelItem | model, |
ControllerAttribute | deactivatedController | ||
) | [inline, private] |
Definition at line 818 of file GrxSimulationItem.java.
Definition at line 348 of file GrxSimulationItem.java.
Reimplemented from com.generalrobotix.ui.GrxBaseItem.
Definition at line 113 of file GrxSimulationItem.java.
void com.generalrobotix.ui.item.GrxSimulationItem.delete | ( | ) | [inline] |
delete this item
Reimplemented from com.generalrobotix.ui.GrxBaseItem.
Definition at line 598 of file GrxSimulationItem.java.
Definition at line 358 of file GrxSimulationItem.java.
void com.generalrobotix.ui.item.GrxSimulationItem.execSWT | ( | Runnable | r, |
boolean | execInCurrentThread | ||
) | [inline, package] |
Definition at line 545 of file GrxSimulationItem.java.
boolean com.generalrobotix.ui.item.GrxSimulationItem.extendTime | ( | ) | [inline, private] |
Definition at line 961 of file GrxSimulationItem.java.
int com.generalrobotix.ui.item.GrxSimulationItem.gcd | ( | int | a, |
int | b | ||
) | [inline] |
Definition at line 1027 of file GrxSimulationItem.java.
DynamicsSimulator com.generalrobotix.ui.item.GrxSimulationItem.getDynamicsSimulator | ( | boolean | update | ) | [inline] |
Definition at line 730 of file GrxSimulationItem.java.
ValueEditType com.generalrobotix.ui.item.GrxSimulationItem.GetValueEditType | ( | String | key | ) | [inline] |
Return editing type of the key item.
Reimplemented from com.generalrobotix.ui.GrxBasePlugin.
Definition at line 1018 of file GrxSimulationItem.java.
boolean com.generalrobotix.ui.item.GrxSimulationItem.initController | ( | ) | [inline, private] |
Definition at line 757 of file GrxSimulationItem.java.
Definition at line 603 of file GrxSimulationItem.java.
Definition at line 989 of file GrxSimulationItem.java.
int com.generalrobotix.ui.item.GrxSimulationItem.lcm | ( | int | a, |
int | b | ||
) | [inline] |
Definition at line 1033 of file GrxSimulationItem.java.
float com.generalrobotix.ui.item.GrxSimulationItem.lcm | ( | float | a, |
float | b | ||
) | [inline] |
Definition at line 1037 of file GrxSimulationItem.java.
Reimplemented from com.generalrobotix.ui.GrxBasePlugin.
Definition at line 555 of file GrxSimulationItem.java.
restore properties. Called by menu item "restore Properties"
Reimplemented from com.generalrobotix.ui.GrxBasePlugin.
Definition at line 993 of file GrxSimulationItem.java.
Reimplemented from com.generalrobotix.ui.GrxBasePlugin.
Definition at line 584 of file GrxSimulationItem.java.
boolean com.generalrobotix.ui.item.GrxSimulationItem.simulateOneStep | ( | ) | [inline, private] |
simulate one step
Definition at line 388 of file GrxSimulationItem.java.
boolean com.generalrobotix.ui.item.GrxSimulationItem.startSimulation | ( | boolean | isInteractive | ) | [inline] |
Definition at line 142 of file GrxSimulationItem.java.
Definition at line 353 of file GrxSimulationItem.java.
Reimplemented from com.generalrobotix.ui.GrxBasePlugin.
Definition at line 572 of file GrxSimulationItem.java.
String com.generalrobotix.ui.item.GrxSimulationItem.updateTimeMsg | ( | ) | [inline, package] |
Definition at line 289 of file GrxSimulationItem.java.
void com.generalrobotix.ui.item.GrxSimulationItem.waitStopSimulation | ( | ) | throws InterruptedException [inline] |
Definition at line 464 of file GrxSimulationItem.java.
ClockGenerator_impl com.generalrobotix.ui.item.GrxSimulationItem.clockGenerator_ = null [static, private] |
Definition at line 84 of file GrxSimulationItem.java.
List<ControllerAttribute> com.generalrobotix.ui.item.GrxSimulationItem.controllers_ = new ArrayList<ControllerAttribute>() [private] |
Definition at line 80 of file GrxSimulationItem.java.
SensorStateHolder com.generalrobotix.ui.item.GrxSimulationItem.cStateH_ = new SensorStateHolder() [private] |
Definition at line 82 of file GrxSimulationItem.java.
DynamicsSimulator com.generalrobotix.ui.item.GrxSimulationItem.currentDynamics_ [private] |
Definition at line 79 of file GrxSimulationItem.java.
Definition at line 78 of file GrxSimulationItem.java.
final int com.generalrobotix.ui.item.GrxSimulationItem.EXEC = -1 [static, private] |
Definition at line 132 of file GrxSimulationItem.java.
final String com.generalrobotix.ui.item.GrxSimulationItem.FORMAT1 = "%8.3f" [static, private] |
Definition at line 76 of file GrxSimulationItem.java.
final int com.generalrobotix.ui.item.GrxSimulationItem.INTERRUPT = 2 [static, private] |
Definition at line 135 of file GrxSimulationItem.java.
final int com.generalrobotix.ui.item.GrxSimulationItem.interval_ = 10 [static, private] |
Definition at line 100 of file GrxSimulationItem.java.
boolean com.generalrobotix.ui.item.GrxSimulationItem.isExecuting_ = false [private] |
Definition at line 87 of file GrxSimulationItem.java.
boolean com.generalrobotix.ui.item.GrxSimulationItem.isIntegrate_ = true [private] |
Definition at line 90 of file GrxSimulationItem.java.
boolean com.generalrobotix.ui.item.GrxSimulationItem.isInteractive_ = true [private] |
Definition at line 86 of file GrxSimulationItem.java.
boolean com.generalrobotix.ui.item.GrxSimulationItem.isRealTime_ = false [private] |
Definition at line 91 of file GrxSimulationItem.java.
Definition at line 95 of file GrxSimulationItem.java.
boolean com.generalrobotix.ui.item.GrxSimulationItem.isSuspending_ = false [private] |
Definition at line 88 of file GrxSimulationItem.java.
Object com.generalrobotix.ui.item.GrxSimulationItem.lock2_ = new Object() [private] |
Definition at line 104 of file GrxSimulationItem.java.
Object com.generalrobotix.ui.item.GrxSimulationItem.lock3_ = new Object() [private] |
Definition at line 138 of file GrxSimulationItem.java.
Object com.generalrobotix.ui.item.GrxSimulationItem.lock_ = new Object() [private] |
Definition at line 137 of file GrxSimulationItem.java.
double com.generalrobotix.ui.item.GrxSimulationItem.logStepTime_ = 0.05 [private] |
Definition at line 94 of file GrxSimulationItem.java.
List<String> com.generalrobotix.ui.item.GrxSimulationItem.robotEntry_ = new ArrayList<String>() [private] |
Definition at line 83 of file GrxSimulationItem.java.
Thread com.generalrobotix.ui.item.GrxSimulationItem.simThread_ [private] |
Definition at line 99 of file GrxSimulationItem.java.
Definition at line 136 of file GrxSimulationItem.java.
double com.generalrobotix.ui.item.GrxSimulationItem.simTime_ = 0.0 [private] |
Definition at line 130 of file GrxSimulationItem.java.
double com.generalrobotix.ui.item.GrxSimulationItem.simulateTime_ = 0 [private] |
Definition at line 89 of file GrxSimulationItem.java.
WorldStateHolder com.generalrobotix.ui.item.GrxSimulationItem.stateH_ = new WorldStateHolder() [private] |
Definition at line 81 of file GrxSimulationItem.java.
double com.generalrobotix.ui.item.GrxSimulationItem.stepTime_ = 0.001 [private] |
Definition at line 92 of file GrxSimulationItem.java.
final int com.generalrobotix.ui.item.GrxSimulationItem.STOP = 1 [static, private] |
Definition at line 134 of file GrxSimulationItem.java.
String com.generalrobotix.ui.item.GrxSimulationItem.timeMsg_ [package] |
Definition at line 288 of file GrxSimulationItem.java.
final int com.generalrobotix.ui.item.GrxSimulationItem.TIMEOVER = 0 [static, private] |
Definition at line 133 of file GrxSimulationItem.java.
final String com.generalrobotix.ui.item.GrxSimulationItem.TITLE = "Simulation" [static] |
Definition at line 75 of file GrxSimulationItem.java.
double com.generalrobotix.ui.item.GrxSimulationItem.totalTime_ = 20 [private] |
Definition at line 93 of file GrxSimulationItem.java.
Definition at line 101 of file GrxSimulationItem.java.
double com.generalrobotix.ui.item.GrxSimulationItem.viewSimulationStep_ = 0 [private] |
Definition at line 96 of file GrxSimulationItem.java.
boolean com.generalrobotix.ui.item.GrxSimulationItem.viewSimulationUpdate_ = false [private] |
Definition at line 139 of file GrxSimulationItem.java.
final int com.generalrobotix.ui.item.GrxSimulationItem.WAIT_COUNT_ = 4 [static, private] |
Definition at line 77 of file GrxSimulationItem.java.
Definition at line 140 of file GrxSimulationItem.java.