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

Public Member Functions

ProcessInfo getNameServerInfo ()
 NameServerのProcessInfo取得 More...
 
String getNameserverLogDir ()
 
String getNewHost ()
 
int getNewPort ()
 
Vector< ProcessInfogetServerInfo ()
 vecServerInfoの取得 More...
 
 GrxServerManager (String name, GrxPluginManager manager)
 
void initialize ()
 
void restart (IProgressMonitor monitor)
 
void restoreDefault ()
 
synchronized void SaveServerInfo ()
 
String setNewHostPort (String host, String port, StringBuffer refHost, StringBuffer refPort)
 
boolean toggleProcess (ProcessInfo pInfo)
 サーバプログラムの起動トグル More...
 
- 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...
 

Static Public Member Functions

static void setNameServerInfoToPreferenceStore ()
 
static void setServerInfoToPreferenceStore ()
 
- Static Public Member Functions inherited from com.generalrobotix.ui.GrxBasePlugin
static Object getField (Class<?extends GrxBasePlugin > cls, String field, Object defaultValue)
 get field More...
 

Public Attributes

String serverInfoDefaultDir_ = ""
 
int serverInfoDefaultWaitCount_ = 0
 

Static Public Attributes

static String NAME_SERVER_HOST_
 
static String NAME_SERVER_LOG_DIR_
 
static int NAME_SERVER_PORT_
 

Private Member Functions

String checkHostFormat (String host)
 
String checkPortFormat (String port)
 
String comToAbsolutePath (String com)
 
String generateNameServerArgs ()
 
void getNameServerInfoFromPerferenceStore ()
 
void getServerInfoFromPerferenceStore ()
 
String[] parse (String string)
 
boolean updatedParam (ProcessInfo pInfo)
 vecServerInfoの更新 vecServerInfoに同名のidが存在すればpInfoを元に更新する More...
 

Static Private Attributes

static final String LINE_SEPARATOR = new String( System.getProperty("line.separator") )
 
static final int MAXMUM_PORT_NUMBER = 65535
 
static volatile ProcessInfo nameServerInfo = new ProcessInfo()
 
static SynchronizedAccessor< String > nameServerLogDir = new SynchronizedAccessor<String>("")
 
static SynchronizedAccessor< String > newHost_ = new SynchronizedAccessor<String>("")
 
static SynchronizedAccessor< Integer > newPort_ = new SynchronizedAccessor<Integer>(0)
 
static volatile Vector< ProcessInfovecServerInfo = new Vector<ProcessInfo>()
 

Additional Inherited Members

- 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.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 30 of file GrxServerManager.java.

Constructor & Destructor Documentation

com.generalrobotix.ui.util.GrxServerManager.GrxServerManager ( String  name,
GrxPluginManager  manager 
)
inline

GrxServerManagerを作り、処理を開始する。

Definition at line 54 of file GrxServerManager.java.

Member Function Documentation

String com.generalrobotix.ui.util.GrxServerManager.checkHostFormat ( String  host)
inlineprivate

Definition at line 192 of file GrxServerManager.java.

String com.generalrobotix.ui.util.GrxServerManager.checkPortFormat ( String  port)
inlineprivate

Definition at line 216 of file GrxServerManager.java.

String com.generalrobotix.ui.util.GrxServerManager.comToAbsolutePath ( String  com)
inlineprivate

Definition at line 390 of file GrxServerManager.java.

String com.generalrobotix.ui.util.GrxServerManager.generateNameServerArgs ( )
inlineprivate

Definition at line 247 of file GrxServerManager.java.

ProcessInfo com.generalrobotix.ui.util.GrxServerManager.getNameServerInfo ( )
inline

NameServerのProcessInfo取得

Returns
ProcessInfo nameServerInfo

Definition at line 70 of file GrxServerManager.java.

void com.generalrobotix.ui.util.GrxServerManager.getNameServerInfoFromPerferenceStore ( )
inlineprivate

Definition at line 253 of file GrxServerManager.java.

String com.generalrobotix.ui.util.GrxServerManager.getNameserverLogDir ( )
inline

Definition at line 83 of file GrxServerManager.java.

String com.generalrobotix.ui.util.GrxServerManager.getNewHost ( )
inline

Definition at line 75 of file GrxServerManager.java.

int com.generalrobotix.ui.util.GrxServerManager.getNewPort ( )
inline

Definition at line 79 of file GrxServerManager.java.

Vector<ProcessInfo> com.generalrobotix.ui.util.GrxServerManager.getServerInfo ( )
inline

vecServerInfoの取得

Returns
Vector<ProcessInfo> vecServerInfo

Definition at line 62 of file GrxServerManager.java.

void com.generalrobotix.ui.util.GrxServerManager.getServerInfoFromPerferenceStore ( )
inlineprivate

Definition at line 315 of file GrxServerManager.java.

void com.generalrobotix.ui.util.GrxServerManager.initialize ( )
inline

Definition at line 230 of file GrxServerManager.java.

String [] com.generalrobotix.ui.util.GrxServerManager.parse ( String  string)
inlineprivate

Definition at line 303 of file GrxServerManager.java.

void com.generalrobotix.ui.util.GrxServerManager.restart ( IProgressMonitor  monitor)
inline

Definition at line 239 of file GrxServerManager.java.

void com.generalrobotix.ui.util.GrxServerManager.restoreDefault ( )
inline

Definition at line 441 of file GrxServerManager.java.

synchronized void com.generalrobotix.ui.util.GrxServerManager.SaveServerInfo ( )
inline

Definition at line 46 of file GrxServerManager.java.

static void com.generalrobotix.ui.util.GrxServerManager.setNameServerInfoToPreferenceStore ( )
inlinestatic

Definition at line 433 of file GrxServerManager.java.

String com.generalrobotix.ui.util.GrxServerManager.setNewHostPort ( String  host,
String  port,
StringBuffer  refHost,
StringBuffer  refPort 
)
inline

Definition at line 87 of file GrxServerManager.java.

static void com.generalrobotix.ui.util.GrxServerManager.setServerInfoToPreferenceStore ( )
inlinestatic

Definition at line 411 of file GrxServerManager.java.

boolean com.generalrobotix.ui.util.GrxServerManager.toggleProcess ( ProcessInfo  pInfo)
inline

サーバプログラムの起動トグル

Parameters
ProcessInfo     開始と停止を遷移させるサーバプログラム
Returns
boolean true:開始状態へ遷移 false:停止状態へ遷移

Definition at line 114 of file GrxServerManager.java.

boolean com.generalrobotix.ui.util.GrxServerManager.updatedParam ( ProcessInfo  pInfo)
inlineprivate

vecServerInfoの更新 vecServerInfoに同名のidが存在すればpInfoを元に更新する

Parameters
pInfo現在の値
Returns
boolean 更新した時はtrue

Definition at line 161 of file GrxServerManager.java.

Member Data Documentation

final String com.generalrobotix.ui.util.GrxServerManager.LINE_SEPARATOR = new String( System.getProperty("line.separator") )
staticprivate

Definition at line 37 of file GrxServerManager.java.

final int com.generalrobotix.ui.util.GrxServerManager.MAXMUM_PORT_NUMBER = 65535
staticprivate

Definition at line 36 of file GrxServerManager.java.

String com.generalrobotix.ui.util.GrxServerManager.NAME_SERVER_HOST_
static

Definition at line 40 of file GrxServerManager.java.

String com.generalrobotix.ui.util.GrxServerManager.NAME_SERVER_LOG_DIR_
static

Definition at line 41 of file GrxServerManager.java.

int com.generalrobotix.ui.util.GrxServerManager.NAME_SERVER_PORT_
static

Definition at line 39 of file GrxServerManager.java.

volatile ProcessInfo com.generalrobotix.ui.util.GrxServerManager.nameServerInfo = new ProcessInfo()
staticprivate

Definition at line 32 of file GrxServerManager.java.

SynchronizedAccessor<String> com.generalrobotix.ui.util.GrxServerManager.nameServerLogDir = new SynchronizedAccessor<String>("")
staticprivate

Definition at line 35 of file GrxServerManager.java.

SynchronizedAccessor<String> com.generalrobotix.ui.util.GrxServerManager.newHost_ = new SynchronizedAccessor<String>("")
staticprivate

Definition at line 34 of file GrxServerManager.java.

SynchronizedAccessor<Integer> com.generalrobotix.ui.util.GrxServerManager.newPort_ = new SynchronizedAccessor<Integer>(0)
staticprivate

Definition at line 33 of file GrxServerManager.java.

String com.generalrobotix.ui.util.GrxServerManager.serverInfoDefaultDir_ = ""

Definition at line 42 of file GrxServerManager.java.

int com.generalrobotix.ui.util.GrxServerManager.serverInfoDefaultWaitCount_ = 0

Definition at line 43 of file GrxServerManager.java.

volatile Vector<ProcessInfo> com.generalrobotix.ui.util.GrxServerManager.vecServerInfo = new Vector<ProcessInfo>()
staticprivate

Definition at line 31 of file GrxServerManager.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