Classes | |
| class | CollisionLogHeader |
| class | LogHeader |
Public Member Functions | |
| void | addLogObject (String objectName, String[] format) throws LogFileFormatException |
| void | closeAsRead () throws IOException |
| double | closeAsWrite () throws IOException |
| void | closeCollisionLogAsRead () throws IOException |
| void | closeCollisionLogAsWrite () throws IOException |
| void | closeReads () |
| void | closeWrites () |
| boolean | existRecord (int recordNum) |
| void | extendTime (SimulationTime time) |
| float[] | get (String objectName, long record) throws IOException |
| CollisionPoint[] | getCollisionPointData (int frameNum) throws IOException |
| int | getCollisionPointDataSize (int frameNum) |
| void | getData (long origin, int offset, int count, DataModel[] dataModelArray) |
| void | getData (long origin, int offset, int count) |
| String[] | getDataFormat (String objectName) |
| int | getDataLength (String objectName) |
| int | getIndex (String obj, String member) |
| String | getIntegrationMethodStr () |
| int | getLogObjectNum () |
| int | getRecordNum (String objectName) |
| void | getSimulationTime (SimulationTime time) |
| String | getTempDir () |
| void | init () |
| void | initCollisionLog (SimulationTime time) |
| void | initGetData (DataModel[] dataModelArray) |
| void | jointLogs () throws IOException |
| void | load (String fileName, String prjFile) throws FileOpenFailException, LogFileFormatException |
| LogManager () | |
| LogManager (LogManager logger) | |
| void | openAsRead () throws IOException, FileOpenFailException |
| void | openAsWrite (SimulationTime time, String method) throws IOException |
| void | openCollisionLogAsRead () throws IOException, FileNotFoundException |
| void | openCollisionLogAsWrite () throws IOException |
| void | put (String objectName, float[] data) throws LogFileOutputException, IOException |
| void | putCollisionPointData (CollisionPoint[] data) throws IOException |
| void | save (String fileName, String prjFileName) throws IOException |
| void | saveCSV (String fileName, String ObjectName) throws FileOpenFailException |
| void | separateLogs (final int changePos) throws IOException |
| void | setTempDir (String tmp) |
| void | setTime (Time time) |
Static Public Member Functions | |
| static void | main (String[] args) |
Static Public Attributes | |
| static final String | COLLISION_LOG_DAT_NAME = "CollisionData.dat" |
| static final String | COLLISION_LOG_NAME = "CollisionData.col" |
Private Member Functions | |
| void | _addFileToZipEntry (ZipOutputStream zip, File file) throws IOException |
| void | _getData (String obj, long recNo, int count, Integer[] itemIndex, double[][] data, int[] dataPos, int[] dsSize) |
| String | _getRelativePath (String path) |
| void | _initTempInstance (LogManager logger) |
| void | _makeIndexMapMap (LogHeader header) |
| String | getTempFilePath (String objectName) |
| String | int2StrIntegrationMethod (int methodInt) |
| int | str2IntIntegrationMethod (String methodStr) |
Private Attributes | |
| RandomAccessFile | collisionDatIn_ = null |
| DataOutputStream | collisionDatOut_ = null |
| RandomAccessFile | collisionIn_ = null |
| CollisionLogHeader | collisionLog_ |
| String | collisionLogDatPath_ = new String(COLLISION_LOG_DAT_NAME) |
| String | collisionLogPath_ = new String(COLLISION_LOG_NAME) |
| DataOutputStream | collisionOut_ = null |
| double[][] | data_ = null |
| int[] | dataPos_ = null |
| HashMap< String, ArrayList < DataSeries > > | dsListMap_ = new HashMap<String, ArrayList<DataSeries>>() |
| int[] | dsSize_ = null |
| Hashtable< String, LogHeader > | header_ |
| HashMap< String, ArrayList < Integer > > | indexListMap_ = new HashMap<String, ArrayList<Integer>>() |
| Map< String, Map< String, Integer > > | indexMapMap_ |
| Hashtable< String, RandomAccessFile > | readFile_ |
| Time | time_ |
| String | tmpdir |
| Hashtable< String, DataOutputStream > | writeFile_ |
Static Private Attributes | |
| static final int | COLLISION_DATA_SIZE = 6 * 4 + 1 * 8 |
| static final String[] | INTEGRATION_METHOD_NAMES = { "RUNGE_KUTTA", "EULER" } |
| static final String | NONAME_OBJECT = "_noname" |
| static final String | POSTFIX = ".tmp" |
ログ管理クラス
1.0 (2001/3/1) 1.1 (2001/10/??) グラフのためにgetData()メソッドを追加。 2.0 (Fri Nov 23 2001) 同時に書き込みと読み込みを可能にした。 3.1 ( 2009/05/11 ) プロパティuseDiskがfalseの時はなるべくメモリー上にデータを保持するように変更。 version 3.1 より前のログファイルには対応しない。
Definition at line 38 of file LogManager.java.
Definition at line 78 of file LogManager.java.
| com.generalrobotix.ui.view.graph.LogManager.LogManager | ( | LogManager | logger | ) | [inline] |
Definition at line 82 of file LogManager.java.
| void com.generalrobotix.ui.view.graph.LogManager._addFileToZipEntry | ( | ZipOutputStream | zip, |
| File | file | ||
| ) | throws IOException [inline, private] |
Definition at line 503 of file LogManager.java.
| void com.generalrobotix.ui.view.graph.LogManager._getData | ( | String | obj, |
| long | recNo, | ||
| int | count, | ||
| Integer[] | itemIndex, | ||
| double | data[][], | ||
| int[] | dataPos, | ||
| int[] | dsSize | ||
| ) | [inline, private] |
Definition at line 907 of file LogManager.java.
| String com.generalrobotix.ui.view.graph.LogManager._getRelativePath | ( | String | path | ) | [inline, private] |
Definition at line 524 of file LogManager.java.
| void com.generalrobotix.ui.view.graph.LogManager._initTempInstance | ( | LogManager | logger | ) | [inline, private] |
Definition at line 1530 of file LogManager.java.
| void com.generalrobotix.ui.view.graph.LogManager._makeIndexMapMap | ( | LogHeader | header | ) | [inline, private] |
Definition at line 938 of file LogManager.java.
| void com.generalrobotix.ui.view.graph.LogManager.addLogObject | ( | String | objectName, |
| String[] | format | ||
| ) | throws LogFileFormatException [inline] |
ログするオブジェクトを追加する
Definition at line 166 of file LogManager.java.
| void com.generalrobotix.ui.view.graph.LogManager.closeAsRead | ( | ) | throws IOException [inline] |
Definition at line 249 of file LogManager.java.
| double com.generalrobotix.ui.view.graph.LogManager.closeAsWrite | ( | ) | throws IOException [inline] |
書き込みとしてオープンしたファイルをクローズする
Definition at line 217 of file LogManager.java.
| void com.generalrobotix.ui.view.graph.LogManager.closeCollisionLogAsRead | ( | ) | throws IOException [inline] |
Definition at line 274 of file LogManager.java.
| void com.generalrobotix.ui.view.graph.LogManager.closeCollisionLogAsWrite | ( | ) | throws IOException [inline] |
Definition at line 285 of file LogManager.java.
読み込み専用バッファを閉じる
Definition at line 104 of file LogManager.java.
書き込み専用バッファを閉じる
Definition at line 118 of file LogManager.java.
| boolean com.generalrobotix.ui.view.graph.LogManager.existRecord | ( | int | recordNum | ) | [inline] |
Definition at line 676 of file LogManager.java.
| void com.generalrobotix.ui.view.graph.LogManager.extendTime | ( | SimulationTime | time | ) | [inline] |
Definition at line 179 of file LogManager.java.
| float [] com.generalrobotix.ui.view.graph.LogManager.get | ( | String | objectName, |
| long | record | ||
| ) | throws IOException [inline] |
Definition at line 1420 of file LogManager.java.
| CollisionPoint [] com.generalrobotix.ui.view.graph.LogManager.getCollisionPointData | ( | int | frameNum | ) | throws IOException [inline] |
Definition at line 1445 of file LogManager.java.
| int com.generalrobotix.ui.view.graph.LogManager.getCollisionPointDataSize | ( | int | frameNum | ) | [inline] |
Definition at line 1484 of file LogManager.java.
| void com.generalrobotix.ui.view.graph.LogManager.getData | ( | long | origin, |
| int | offset, | ||
| int | count, | ||
| DataModel[] | dataModelArray | ||
| ) | [inline] |
データ読み出し dataModelArrayで指定されたデータアイテムをoriginから offset進んだところからcountだけ読み出す
| origin | 読み出し開始レコード |
| offset | レコードオフセット |
| count | 読み出しレコード数 |
| dataModelArray | データモデル配列 |
Definition at line 718 of file LogManager.java.
| void com.generalrobotix.ui.view.graph.LogManager.getData | ( | long | origin, |
| int | offset, | ||
| int | count | ||
| ) | [inline] |
Definition at line 892 of file LogManager.java.
| String [] com.generalrobotix.ui.view.graph.LogManager.getDataFormat | ( | String | objectName | ) | [inline] |
Definition at line 305 of file LogManager.java.
| int com.generalrobotix.ui.view.graph.LogManager.getDataLength | ( | String | objectName | ) | [inline] |
Definition at line 701 of file LogManager.java.
| int com.generalrobotix.ui.view.graph.LogManager.getIndex | ( | String | obj, |
| String | member | ||
| ) | [inline] |
モデルの関節エレメントの値に相当する put(String,float[])関数で渡されるfloat[]配列の インデックスの値を返す
| obj | モデル名 |
| member | 関節名.属性.配列インデックス |
Definition at line 1526 of file LogManager.java.
| String com.generalrobotix.ui.view.graph.LogManager.getIntegrationMethodStr | ( | ) | [inline] |
Definition at line 139 of file LogManager.java.
Definition at line 697 of file LogManager.java.
| int com.generalrobotix.ui.view.graph.LogManager.getRecordNum | ( | String | objectName | ) | [inline] |
Definition at line 1493 of file LogManager.java.
ヘッダ情報からSimulationTimeを与える
Definition at line 149 of file LogManager.java.
| String com.generalrobotix.ui.view.graph.LogManager.getTempDir | ( | ) | [inline] |
Definition at line 1513 of file LogManager.java.
| String com.generalrobotix.ui.view.graph.LogManager.getTempFilePath | ( | String | objectName | ) | [inline, private] |
Definition at line 130 of file LogManager.java.
| void com.generalrobotix.ui.view.graph.LogManager.init | ( | ) | [inline] |
初期化
Definition at line 94 of file LogManager.java.
干渉チェック情報のログのための初期化
Definition at line 175 of file LogManager.java.
| void com.generalrobotix.ui.view.graph.LogManager.initGetData | ( | DataModel[] | dataModelArray | ) | [inline] |
Definition at line 846 of file LogManager.java.
| String com.generalrobotix.ui.view.graph.LogManager.int2StrIntegrationMethod | ( | int | methodInt | ) | [inline, private] |
Definition at line 1548 of file LogManager.java.
| void com.generalrobotix.ui.view.graph.LogManager.jointLogs | ( | ) | throws IOException [inline] |
Definition at line 362 of file LogManager.java.
| void com.generalrobotix.ui.view.graph.LogManager.load | ( | String | fileName, |
| String | prjFile | ||
| ) | throws FileOpenFailException, LogFileFormatException [inline] |
Definition at line 540 of file LogManager.java.
| static void com.generalrobotix.ui.view.graph.LogManager.main | ( | String[] | args | ) | [inline, static] |
Definition at line 66 of file LogManager.java.
| void com.generalrobotix.ui.view.graph.LogManager.openAsRead | ( | ) | throws IOException, FileOpenFailException [inline] |
Definition at line 235 of file LogManager.java.
| void com.generalrobotix.ui.view.graph.LogManager.openAsWrite | ( | SimulationTime | time, |
| String | method | ||
| ) | throws IOException [inline] |
ログ書き込みのためにファイルをオープン
ログファイルは複数あるので、ストリームをハッシュテーブル(file_)に 保存
Definition at line 188 of file LogManager.java.
| void com.generalrobotix.ui.view.graph.LogManager.openCollisionLogAsRead | ( | ) | throws IOException, FileNotFoundException [inline] |
Definition at line 269 of file LogManager.java.
| void com.generalrobotix.ui.view.graph.LogManager.openCollisionLogAsWrite | ( | ) | throws IOException [inline] |
Definition at line 259 of file LogManager.java.
| void com.generalrobotix.ui.view.graph.LogManager.put | ( | String | objectName, |
| float[] | data | ||
| ) | throws LogFileOutputException, IOException [inline] |
Definition at line 322 of file LogManager.java.
| void com.generalrobotix.ui.view.graph.LogManager.putCollisionPointData | ( | CollisionPoint[] | data | ) | throws IOException [inline] |
Definition at line 342 of file LogManager.java.
| void com.generalrobotix.ui.view.graph.LogManager.save | ( | String | fileName, |
| String | prjFileName | ||
| ) | throws IOException [inline] |
| void com.generalrobotix.ui.view.graph.LogManager.saveCSV | ( | String | fileName, |
| String | ObjectName | ||
| ) | throws FileOpenFailException [inline] |
Definition at line 614 of file LogManager.java.
| void com.generalrobotix.ui.view.graph.LogManager.separateLogs | ( | final int | changePos | ) | throws IOException [inline] |
Definition at line 416 of file LogManager.java.
| void com.generalrobotix.ui.view.graph.LogManager.setTempDir | ( | String | tmp | ) | [inline] |
Definition at line 1499 of file LogManager.java.
| void com.generalrobotix.ui.view.graph.LogManager.setTime | ( | Time | time | ) | [inline] |
Definition at line 318 of file LogManager.java.
| int com.generalrobotix.ui.view.graph.LogManager.str2IntIntegrationMethod | ( | String | methodStr | ) | [inline, private] |
Definition at line 1540 of file LogManager.java.
final int com.generalrobotix.ui.view.graph.LogManager.COLLISION_DATA_SIZE = 6 * 4 + 1 * 8 [static, private] |
Definition at line 44 of file LogManager.java.
final String com.generalrobotix.ui.view.graph.LogManager.COLLISION_LOG_DAT_NAME = "CollisionData.dat" [static] |
Definition at line 42 of file LogManager.java.
final String com.generalrobotix.ui.view.graph.LogManager.COLLISION_LOG_NAME = "CollisionData.col" [static] |
Definition at line 41 of file LogManager.java.
RandomAccessFile com.generalrobotix.ui.view.graph.LogManager.collisionDatIn_ = null [private] |
Definition at line 58 of file LogManager.java.
DataOutputStream com.generalrobotix.ui.view.graph.LogManager.collisionDatOut_ = null [private] |
Definition at line 57 of file LogManager.java.
RandomAccessFile com.generalrobotix.ui.view.graph.LogManager.collisionIn_ = null [private] |
Definition at line 56 of file LogManager.java.
Definition at line 53 of file LogManager.java.
String com.generalrobotix.ui.view.graph.LogManager.collisionLogDatPath_ = new String(COLLISION_LOG_DAT_NAME) [private] |
Definition at line 60 of file LogManager.java.
String com.generalrobotix.ui.view.graph.LogManager.collisionLogPath_ = new String(COLLISION_LOG_NAME) [private] |
Definition at line 59 of file LogManager.java.
DataOutputStream com.generalrobotix.ui.view.graph.LogManager.collisionOut_ = null [private] |
Definition at line 55 of file LogManager.java.
double [][] com.generalrobotix.ui.view.graph.LogManager.data_ = null [private] |
Definition at line 844 of file LogManager.java.
int [] com.generalrobotix.ui.view.graph.LogManager.dataPos_ = null [private] |
Definition at line 843 of file LogManager.java.
HashMap<String, ArrayList<DataSeries> > com.generalrobotix.ui.view.graph.LogManager.dsListMap_ = new HashMap<String, ArrayList<DataSeries>>() [private] |
Definition at line 841 of file LogManager.java.
int [] com.generalrobotix.ui.view.graph.LogManager.dsSize_ = null [private] |
Definition at line 845 of file LogManager.java.
Hashtable<String, LogHeader> com.generalrobotix.ui.view.graph.LogManager.header_ [private] |
Definition at line 49 of file LogManager.java.
HashMap<String, ArrayList<Integer> > com.generalrobotix.ui.view.graph.LogManager.indexListMap_ = new HashMap<String, ArrayList<Integer>>() [private] |
Definition at line 842 of file LogManager.java.
Map<String, Map<String, Integer> > com.generalrobotix.ui.view.graph.LogManager.indexMapMap_ [private] |
Definition at line 52 of file LogManager.java.
final String [] com.generalrobotix.ui.view.graph.LogManager.INTEGRATION_METHOD_NAMES = { "RUNGE_KUTTA", "EULER" } [static, private] |
Definition at line 1539 of file LogManager.java.
final String com.generalrobotix.ui.view.graph.LogManager.NONAME_OBJECT = "_noname" [static, private] |
Definition at line 45 of file LogManager.java.
final String com.generalrobotix.ui.view.graph.LogManager.POSTFIX = ".tmp" [static, private] |
Definition at line 43 of file LogManager.java.
Hashtable<String, RandomAccessFile> com.generalrobotix.ui.view.graph.LogManager.readFile_ [private] |
Definition at line 51 of file LogManager.java.
Definition at line 54 of file LogManager.java.
String com.generalrobotix.ui.view.graph.LogManager.tmpdir [private] |
Definition at line 62 of file LogManager.java.
Hashtable<String, DataOutputStream> com.generalrobotix.ui.view.graph.LogManager.writeFile_ [private] |
Definition at line 50 of file LogManager.java.