Classes | Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
com.generalrobotix.ui.item.GrxWorldStateItem Class Reference
Inheritance diagram for com.generalrobotix.ui.item.GrxWorldStateItem:
Inheritance graph
[legend]

Classes

class  CharacterStateEx
 
class  SensorInfoLocal
 
class  WorldStateEx
 

Public Member Functions

void addPosObserver (GrxPositionObserver v)
 
void addValue (Double t, Object obj)
 
void clearLog ()
 
boolean create ()
 
void delete ()
 
void deletePosObserver (GrxPositionObserver v)
 
void extendTime (double time)
 
Double getTime (int pos)
 
WorldStateEx getValue ()
 
WorldStateEx getValue (int pos)
 
 GrxWorldStateItem (String name, GrxPluginManager manager)
 
void init ()
 
boolean isUseDsik ()
 
boolean load (File f)
 
void registerCharacter (String cname, BodyInfo binfo)
 
void rename (String newName)
 
void restoreProperties ()
 
void setLogMenus (boolean bAble)
 
void setPosition (Integer pos)
 
void setPosition (Integer pos, GrxBaseView view)
 
void stopSimulation ()
 
- Public Member Functions inherited from com.generalrobotix.ui.GrxTimeSeriesItem
void addValue (Double t, Object val)
 
void clearLog ()
 
int getChangePosition ()
 
final int getLogSize ()
 
int getPosition ()
 
int getPositionAt (Double t)
 
Double getTime ()
 
Double getTime (int pos)
 
Object getValue ()
 
Object getValue (int pos)
 
 GrxTimeSeriesItem (String name, GrxPluginManager manager)
 
final void setMaximumLogSize (int maxLogSize)
 
void setTimeAt (int pos, Double t)
 
- Public Member Functions inherited from com.generalrobotix.ui.GrxBaseItem
File chooseSaveFile ()
 
GrxBaseItem clone ()
 Override clone method. More...
 
boolean create ()
 
void delete ()
 delete this item More...
 
File getDefaultDir ()
 get default directory More...
 
String getFileExtention ()
 get file extension More...
 
Object getValue ()
 
boolean load (File file)
 
void paste (String clipVal)
 paste object More...
 
void setValue (Object o)
 
- Public Member Functions inherited from com.generalrobotix.ui.GrxBasePlugin
void addObserver (GrxObserver v)
 
GrxBasePlugin clone ()
 Override clone method. More...
 
void deleteObserver (GrxObserver v)
 
boolean equals (Object obj)
 check whether obj equals to this More...
 
Element getElement ()
 get element More...
 
Image getIcon ()
 get icon More...
 
Vector< Action > getMenu ()
 get menu More...
 
String[] getMenuPath ()
 get menu path More...
 
final String getName ()
 get name More...
 
ArrayList< GrxObservergetObserver ()
 
String getOldName ()
 
Vector< MenuManager > getSubMenu ()
 get subMenu More...
 
String getURL (boolean expand)
 
ValueEditType GetValueEditType (String key)
 Return editing type of the key item. More...
 
boolean isExclusive ()
 check whether this is exclusive or not More...
 
boolean isSelected ()
 check whether this is selected or not More...
 
void notifyObservers (Object...arg)
 
boolean propertyChanged (String property, String value)
 check validity of new value of property and update if valid More...
 
boolean registerCORBA ()
 
void rename (String newName)
 rename this item More...
 
void restoreProperties ()
 restore properties. Called by menu item "restore Properties" More...
 
void setDocument (Document doc)
 set document More...
 
void setElement (Element element)
 set element More...
 
void setExclusive (boolean b)
 set exclusive flag More...
 
void setFocused (boolean b)
 set/unset focus on this plugin More...
 
void setMenuItem (Action a)
 add a menu item More...
 
void setName (String name)
 set name More...
 
Object setProperty (String key, String value)
 set property value associated with a keyword More...
 
void setSelected (boolean b)
 set selected flag More...
 
void setSubMenu (MenuManager m)
 add a submenu More...
 
void setURL (String url)
 set URL property More...
 
void shutdown ()
 
Element storeProperties ()
 store properties More...
 
final String toString ()
 convert to String. Currently, name is returned. More...
 
void unregisterCORBA ()
 
- Public Member Functions inherited from com.generalrobotix.ui.util.GrxConfigBundle
final Double getDbl (String key, Double defaultVal)
 get double value associated to key More...
 
Double getDbl (String value)
 
final double[] getDblAry (String key, double[] defaultVal)
 get double array associated to key More...
 
double[] getDblAry (String value)
 get array of double from String More...
 
final Float getFlt (String key, Float defaultVal)
 get float value associated to key More...
 
final Float getFlt (String value)
 
final float[] getFltAry (String key, float[] defaultVal)
 get float array associated to key More...
 
float[] getFltAry (String value)
 
final Integer getInt (String key, Integer defaultVal)
 get integer value associated to key More...
 
final int[] getIntAry (String key)
 get integer array associated to key More...
 
final Short getShort (String key, Short defaultVal)
 get short value associated to key More...
 
Short getShort (String value)
 
final String getStr (String key)
 get value associated to keyword More...
 
final String getStr (String key, String defaultVal)
 get value associated to key More...
 
 GrxConfigBundle ()
 constructor More...
 
 GrxConfigBundle (String fname) throws IOException
 construct from a file More...
 
final boolean isFalse (String key)
 check whether value associated to key includes a word "false" More...
 
final boolean isFalse (String key, boolean defaultVal)
 check whether value associated to key includes a word "false" More...
 
final boolean isTrue (String key)
 check whether value associated to key includes a word "true" More...
 
final boolean isTrue (String key, boolean defaultVal)
 check whether value associated to key includes a word "true" More...
 
void load (String fname) throws IOException
 load config from a file More...
 
final void setBool (String key, boolean value)
 
final void setDbl (String key, double value)
 associate double value to key More...
 
final void setDbl (String key, double value, int digits)
 associate double value to key More...
 
final void setDblAry (String key, double[] value, int digits)
 associate double array to key More...
 
final void setDblAry (String key, double[] value)
 associate double array to key More...
 
final void setFlt (String key, float value)
 associate float value to key More...
 
final void setFltAry (String key, float[] value)
 associate float array to key More...
 
final void setInt (String key, int value)
 associate int value to key More...
 
final void setShort (String key, short value)
 associate short value to key More...
 
void store (String fname, String comments) throws IOException
 store this config More...
 

Public Attributes

final LogManager logger_ = new LogManager()
 

Static Public Attributes

static final String DEFAULT_DIR = "/"
 
static final double DEFAULT_TOTAL_TIME = 20.0
 
static final String FILE_EXTENSION = "log"
 
static final String TITLE = "World State"
 

Private Member Functions

void _addValueToLog (Double t, Object obj)
 
void _addValueToLogFromSuperLog (Double t, Object obj, LogManager temp)
 
void _createOverLog (double currentTime, double startTime, int changePos, int overPos)
 
WorldStateEx _getValueFromLog (int pos)
 
void _initLog ()
 
void _loadLog (final File logFile)
 
void _loadLog (File logFile, IProgressMonitor monitor) throws InterruptedException
 
LogManager _restoreLogFileFromSuperLog ()
 
void _saveCSV ()
 
void _saveLog ()
 
void _toLogFile (LogManager temp)
 
void notifyPosition (Integer pos)
 

Private Attributes

AxisAngle4d a4d = new AxisAngle4d()
 
AxisAngle4d a4dg = new AxisAngle4d()
 
Action clear_
 
boolean initLogFlag_ = false
 
String lastCharName_ = null
 
Matrix3d m3d = new Matrix3d()
 
Matrix3d m3dg = new Matrix3d()
 
WorldStateEx newStat_ = null
 
ArrayList< GrxPositionObserverpos_obs_ = new ArrayList<GrxPositionObserver>()
 
int prePos_ = -1
 
WorldStateEx preStat_ = null
 
float recDat_ [][]
 
Action save_
 
Action saveCSV_
 
boolean storeAllPos_ = true
 
String tempDir_
 
String tempDirBase_
 
boolean useDisk_ = true
 

Static Private Attributes

static final long HEAP_MEMORY_TOLERANCE = 4*1024*1024
 
static final int LOAD_LOG_MODITOR_DIM = 32
 
static String LOG_DIR
 
static final int MAX_RAM_BUFFER_SIZE = -1
 
static final String OVER_HEAP_LOG_DIR_NAME = "over"
 

Additional Inherited Members

- Static Public Member Functions inherited from com.generalrobotix.ui.GrxBasePlugin
static Object getField (Class<?extends GrxBasePlugin > cls, String field, Object defaultValue)
 get field More...
 
- Protected Member Functions inherited from com.generalrobotix.ui.GrxTimeSeriesItem
TValue getObject (int index)
 
boolean isRemoved ()
 
boolean setPosition (int pos)
 
- Protected Member Functions inherited from com.generalrobotix.ui.GrxBaseItem
 GrxBaseItem (String name, GrxPluginManager manager)
 constructor More...
 
void setDefaultDirectory (String dir)
 
void setFileExtension (String ext)
 
- Protected Member Functions inherited from com.generalrobotix.ui.GrxBasePlugin
 GrxBasePlugin (String name, GrxPluginManager manager)
 constructor More...
 
void setIcon (String iconName)
 set icon More...
 
void setMenuPath (String[] path)
 set menu path More...
 
boolean syncExec (Runnable r)
 Transfer SWT UI thread. More...
 
- Protected Attributes inherited from com.generalrobotix.ui.GrxTimeSeriesItem
int changePos_ = -1
 
int overPos_ = 0
 
- Protected Attributes inherited from com.generalrobotix.ui.GrxBaseItem
String clipValue_ = ""
 
File file_
 
- Protected Attributes inherited from com.generalrobotix.ui.GrxBasePlugin
Document doc_
 
Element element_
 
GrxPluginManager manager_
 
- Static Protected Attributes inherited from com.generalrobotix.ui.GrxBaseItem
static final String[] jointTypeComboItem_ = new String[] { "fixed", "rotate", "free", "slide" }
 
static final String[] methodComboItem_ = new String[] { "EULER", "RUNGE_KUTTA" }
 
static final String[] modeComboItem_ = new String[] { "Torque", "HighGain" }
 
- Static Protected Attributes inherited from com.generalrobotix.ui.GrxBasePlugin
static final String[] booleanComboItem_ = new String[] {"true", "false" }
 
static final String INDENT4 = " "
 
static final String ITEM_TAG = "item"
 
static final String PROPERTY_TAG = "property"
 
static final String VIEW_TAG = "view"
 

Detailed Description

Definition at line 53 of file GrxWorldStateItem.java.

Constructor & Destructor Documentation

com.generalrobotix.ui.item.GrxWorldStateItem.GrxWorldStateItem ( String  name,
GrxPluginManager  manager 
)
inline

Definition at line 118 of file GrxWorldStateItem.java.

Member Function Documentation

void com.generalrobotix.ui.item.GrxWorldStateItem._addValueToLog ( Double  t,
Object  obj 
)
inlineprivate

Definition at line 334 of file GrxWorldStateItem.java.

void com.generalrobotix.ui.item.GrxWorldStateItem._addValueToLogFromSuperLog ( Double  t,
Object  obj,
LogManager  temp 
)
inlineprivate

Definition at line 343 of file GrxWorldStateItem.java.

void com.generalrobotix.ui.item.GrxWorldStateItem._createOverLog ( double  currentTime,
double  startTime,
int  changePos,
int  overPos 
)
inlineprivate

Definition at line 860 of file GrxWorldStateItem.java.

WorldStateEx com.generalrobotix.ui.item.GrxWorldStateItem._getValueFromLog ( int  pos)
inlineprivate

Definition at line 528 of file GrxWorldStateItem.java.

void com.generalrobotix.ui.item.GrxWorldStateItem._initLog ( )
inlineprivate

Definition at line 449 of file GrxWorldStateItem.java.

void com.generalrobotix.ui.item.GrxWorldStateItem._loadLog ( final File  logFile)
inlineprivate

Definition at line 615 of file GrxWorldStateItem.java.

void com.generalrobotix.ui.item.GrxWorldStateItem._loadLog ( File  logFile,
IProgressMonitor  monitor 
) throws InterruptedException
inlineprivate

Definition at line 647 of file GrxWorldStateItem.java.

LogManager com.generalrobotix.ui.item.GrxWorldStateItem._restoreLogFileFromSuperLog ( )
inlineprivate

Definition at line 908 of file GrxWorldStateItem.java.

void com.generalrobotix.ui.item.GrxWorldStateItem._saveCSV ( )
inlineprivate

Definition at line 997 of file GrxWorldStateItem.java.

void com.generalrobotix.ui.item.GrxWorldStateItem._saveLog ( )
inlineprivate

Definition at line 822 of file GrxWorldStateItem.java.

void com.generalrobotix.ui.item.GrxWorldStateItem._toLogFile ( LogManager  temp)
inlineprivate

Definition at line 353 of file GrxWorldStateItem.java.

void com.generalrobotix.ui.item.GrxWorldStateItem.addPosObserver ( GrxPositionObserver  v)
inline

Definition at line 1101 of file GrxWorldStateItem.java.

void com.generalrobotix.ui.item.GrxWorldStateItem.addValue ( Double  t,
Object  obj 
)
inline

Definition at line 307 of file GrxWorldStateItem.java.

void com.generalrobotix.ui.item.GrxWorldStateItem.clearLog ( )
inline

Definition at line 195 of file GrxWorldStateItem.java.

boolean com.generalrobotix.ui.item.GrxWorldStateItem.create ( )
inline

Definition at line 150 of file GrxWorldStateItem.java.

void com.generalrobotix.ui.item.GrxWorldStateItem.delete ( )
inline

Definition at line 1333 of file GrxWorldStateItem.java.

void com.generalrobotix.ui.item.GrxWorldStateItem.deletePosObserver ( GrxPositionObserver  v)
inline

Definition at line 1105 of file GrxWorldStateItem.java.

void com.generalrobotix.ui.item.GrxWorldStateItem.extendTime ( double  time)
inline

Definition at line 1056 of file GrxWorldStateItem.java.

Double com.generalrobotix.ui.item.GrxWorldStateItem.getTime ( int  pos)
inline

Definition at line 1040 of file GrxWorldStateItem.java.

WorldStateEx com.generalrobotix.ui.item.GrxWorldStateItem.getValue ( void  )
inline

Definition at line 490 of file GrxWorldStateItem.java.

WorldStateEx com.generalrobotix.ui.item.GrxWorldStateItem.getValue ( int  pos)
inline

Definition at line 512 of file GrxWorldStateItem.java.

void com.generalrobotix.ui.item.GrxWorldStateItem.init ( )
inline

Definition at line 444 of file GrxWorldStateItem.java.

boolean com.generalrobotix.ui.item.GrxWorldStateItem.isUseDsik ( )
inline

Definition at line 1076 of file GrxWorldStateItem.java.

boolean com.generalrobotix.ui.item.GrxWorldStateItem.load ( File  f)
inline

Definition at line 156 of file GrxWorldStateItem.java.

void com.generalrobotix.ui.item.GrxWorldStateItem.notifyPosition ( Integer  pos)
inlineprivate

Definition at line 1109 of file GrxWorldStateItem.java.

void com.generalrobotix.ui.item.GrxWorldStateItem.registerCharacter ( String  cname,
BodyInfo  binfo 
)
inline

Definition at line 215 of file GrxWorldStateItem.java.

void com.generalrobotix.ui.item.GrxWorldStateItem.rename ( String  newName)
inline

Definition at line 180 of file GrxWorldStateItem.java.

void com.generalrobotix.ui.item.GrxWorldStateItem.restoreProperties ( )
inline

Definition at line 167 of file GrxWorldStateItem.java.

void com.generalrobotix.ui.item.GrxWorldStateItem.setLogMenus ( boolean  bAble)
inline

Definition at line 161 of file GrxWorldStateItem.java.

void com.generalrobotix.ui.item.GrxWorldStateItem.setPosition ( Integer  pos)
inline

set position of pointer

Parameters
posposition

Definition at line 1082 of file GrxWorldStateItem.java.

void com.generalrobotix.ui.item.GrxWorldStateItem.setPosition ( Integer  pos,
GrxBaseView  view 
)
inline

Definition at line 1088 of file GrxWorldStateItem.java.

void com.generalrobotix.ui.item.GrxWorldStateItem.stopSimulation ( )
inline

Definition at line 1071 of file GrxWorldStateItem.java.

Member Data Documentation

AxisAngle4d com.generalrobotix.ui.item.GrxWorldStateItem.a4d = new AxisAngle4d()
private

Definition at line 110 of file GrxWorldStateItem.java.

AxisAngle4d com.generalrobotix.ui.item.GrxWorldStateItem.a4dg = new AxisAngle4d()
private

Definition at line 112 of file GrxWorldStateItem.java.

Action com.generalrobotix.ui.item.GrxWorldStateItem.clear_
private
Initial value:
= new Action(){
public String getText(){ return MessageBundle.get("GrxWorldStateItem.menu.clearLog"); }
public void run(){
if( MessageDialog.openQuestion( null, MessageBundle.get("GrxWorldStateItem.dialog.title.clearLog"), MessageBundle.get("GrxWorldStateItem.dialog.message.clearLog") ) )
}
}

Definition at line 102 of file GrxWorldStateItem.java.

final String com.generalrobotix.ui.item.GrxWorldStateItem.DEFAULT_DIR = "/"
static

Definition at line 55 of file GrxWorldStateItem.java.

final double com.generalrobotix.ui.item.GrxWorldStateItem.DEFAULT_TOTAL_TIME = 20.0
static

Definition at line 58 of file GrxWorldStateItem.java.

final String com.generalrobotix.ui.item.GrxWorldStateItem.FILE_EXTENSION = "log"
static

Definition at line 56 of file GrxWorldStateItem.java.

final long com.generalrobotix.ui.item.GrxWorldStateItem.HEAP_MEMORY_TOLERANCE = 4*1024*1024
staticprivate

Definition at line 61 of file GrxWorldStateItem.java.

boolean com.generalrobotix.ui.item.GrxWorldStateItem.initLogFlag_ = false
private

Definition at line 72 of file GrxWorldStateItem.java.

String com.generalrobotix.ui.item.GrxWorldStateItem.lastCharName_ = null
private

Definition at line 71 of file GrxWorldStateItem.java.

final int com.generalrobotix.ui.item.GrxWorldStateItem.LOAD_LOG_MODITOR_DIM = 32
staticprivate

Definition at line 60 of file GrxWorldStateItem.java.

String com.generalrobotix.ui.item.GrxWorldStateItem.LOG_DIR
staticprivate

Definition at line 63 of file GrxWorldStateItem.java.

final LogManager com.generalrobotix.ui.item.GrxWorldStateItem.logger_ = new LogManager()

Definition at line 69 of file GrxWorldStateItem.java.

Matrix3d com.generalrobotix.ui.item.GrxWorldStateItem.m3d = new Matrix3d()
private

Definition at line 111 of file GrxWorldStateItem.java.

Matrix3d com.generalrobotix.ui.item.GrxWorldStateItem.m3dg = new Matrix3d()
private

Definition at line 113 of file GrxWorldStateItem.java.

final int com.generalrobotix.ui.item.GrxWorldStateItem.MAX_RAM_BUFFER_SIZE = -1
staticprivate

Definition at line 59 of file GrxWorldStateItem.java.

WorldStateEx com.generalrobotix.ui.item.GrxWorldStateItem.newStat_ = null
private

Definition at line 65 of file GrxWorldStateItem.java.

final String com.generalrobotix.ui.item.GrxWorldStateItem.OVER_HEAP_LOG_DIR_NAME = "over"
staticprivate

Definition at line 62 of file GrxWorldStateItem.java.

ArrayList<GrxPositionObserver> com.generalrobotix.ui.item.GrxWorldStateItem.pos_obs_ = new ArrayList<GrxPositionObserver>()
private

Definition at line 1099 of file GrxWorldStateItem.java.

int com.generalrobotix.ui.item.GrxWorldStateItem.prePos_ = -1
private

Definition at line 67 of file GrxWorldStateItem.java.

WorldStateEx com.generalrobotix.ui.item.GrxWorldStateItem.preStat_ = null
private

Definition at line 66 of file GrxWorldStateItem.java.

float com.generalrobotix.ui.item.GrxWorldStateItem.recDat_[][]
private

Definition at line 70 of file GrxWorldStateItem.java.

Action com.generalrobotix.ui.item.GrxWorldStateItem.save_
private
Initial value:
= new Action(){
public String getText(){ return MessageBundle.get("GrxWorldStateItem.menu.saveLog"); }
public void run(){
if(isRemoved()){
MessageDialog.openWarning(
GrxUIPerspectiveFactory.getCurrentShell(),
MessageBundle.get("GrxWorldStateItem.dialog.title.saveLog"),
MessageBundle.get("GrxWorldStateItem.dialog.message.saveLog"));
return;
}
}
}

Definition at line 76 of file GrxWorldStateItem.java.

Action com.generalrobotix.ui.item.GrxWorldStateItem.saveCSV_
private
Initial value:
= new Action(){
public String getText(){ return MessageBundle.get("GrxWorldStateItem.menu.saveAsCSV"); }
public void run(){
if(isRemoved()){
MessageDialog.openWarning(
GrxUIPerspectiveFactory.getCurrentShell(),
MessageBundle.get("GrxWorldStateItem.dialog.title.saveAsCSV"),
MessageBundle.get("GrxWorldStateItem.dialog.message.saveAsCSV"));
return;
}
}
}

Definition at line 89 of file GrxWorldStateItem.java.

boolean com.generalrobotix.ui.item.GrxWorldStateItem.storeAllPos_ = true
private

Definition at line 74 of file GrxWorldStateItem.java.

String com.generalrobotix.ui.item.GrxWorldStateItem.tempDir_
private

Definition at line 116 of file GrxWorldStateItem.java.

String com.generalrobotix.ui.item.GrxWorldStateItem.tempDirBase_
private

Definition at line 115 of file GrxWorldStateItem.java.

final String com.generalrobotix.ui.item.GrxWorldStateItem.TITLE = "World State"
static

Definition at line 54 of file GrxWorldStateItem.java.

boolean com.generalrobotix.ui.item.GrxWorldStateItem.useDisk_ = true
private

Definition at line 73 of file GrxWorldStateItem.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 Sat May 8 2021 02:42:44