Classes | Public Member Functions | Static Public Attributes | Package Functions | Package Attributes | Private Member Functions | Private Attributes | Static Private Attributes
com.generalrobotix.ui.item.GrxSimulationItem Class Reference
Inheritance diagram for com.generalrobotix.ui.item.GrxSimulationItem:
Inheritance graph
[legend]

List of all members.

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< ControllerAttributecontrollers_ = 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

Detailed Description

Definition at line 74 of file GrxSimulationItem.java.


Constructor & Destructor Documentation

Definition at line 106 of file GrxSimulationItem.java.


Member Function Documentation

Definition at line 297 of file GrxSimulationItem.java.

Definition at line 775 of file GrxSimulationItem.java.

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.

Definition at line 818 of file GrxSimulationItem.java.

Definition at line 348 of file GrxSimulationItem.java.

Returns:

Reimplemented from com.generalrobotix.ui.GrxBaseItem.

Definition at line 113 of file GrxSimulationItem.java.

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.

Definition at line 961 of file GrxSimulationItem.java.

Definition at line 1027 of file GrxSimulationItem.java.

Definition at line 730 of file GrxSimulationItem.java.

Return editing type of the key item.

Returns:
ValueEditType

Reimplemented from com.generalrobotix.ui.GrxBasePlugin.

Definition at line 1018 of file GrxSimulationItem.java.

Definition at line 757 of file GrxSimulationItem.java.

Definition at line 603 of file GrxSimulationItem.java.

Definition at line 989 of file GrxSimulationItem.java.

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.

simulate one step

Returns:
true if simulation should be continued, false otherwise

Definition at line 388 of file GrxSimulationItem.java.

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.

Definition at line 289 of file GrxSimulationItem.java.

Definition at line 464 of file GrxSimulationItem.java.


Member Data Documentation

Definition at line 84 of file GrxSimulationItem.java.

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.

Definition at line 79 of file GrxSimulationItem.java.

Definition at line 78 of file GrxSimulationItem.java.

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.

Definition at line 135 of file GrxSimulationItem.java.

Definition at line 100 of file GrxSimulationItem.java.

Definition at line 87 of file GrxSimulationItem.java.

Definition at line 90 of file GrxSimulationItem.java.

Definition at line 86 of file GrxSimulationItem.java.

Definition at line 91 of file GrxSimulationItem.java.

Definition at line 95 of file GrxSimulationItem.java.

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.

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.

Definition at line 99 of file GrxSimulationItem.java.

Definition at line 136 of file GrxSimulationItem.java.

Definition at line 130 of file GrxSimulationItem.java.

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.

Definition at line 92 of file GrxSimulationItem.java.

Definition at line 134 of file GrxSimulationItem.java.

Definition at line 288 of file GrxSimulationItem.java.

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.

Definition at line 93 of file GrxSimulationItem.java.

Definition at line 101 of file GrxSimulationItem.java.

Definition at line 96 of file GrxSimulationItem.java.

Definition at line 139 of file GrxSimulationItem.java.

Definition at line 77 of file GrxSimulationItem.java.

Definition at line 140 of file GrxSimulationItem.java.


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


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Thu Apr 11 2019 03:30:21