ohymosj
クラス TestSimpleDam
java.lang.Object
ohymosj.OhObject
ohymosj.OhElement
ohymosj.OhSubSystem
ohymosj.OhTotalSystem
ohymosj.TestSimpleDam
- public class TestSimpleDam
- extends OhTotalSystem
TestSimpleDam.
Test the simple dam model.
- バージョン:
- $Revision: 1.9 $ $Date: 2004/03/08 17:03:02 $
- 作成者:
- satoh
クラス ohymosj.OhElement から継承したフィールド |
_calReqP, _currentTime, _dataString, _fixedTime, _initialWorkDoneP, _numberOfObjects, _numberOfReceivePorts, _numberOfSendPorts, _objectArray, _objectList, _receivePortArray, _sendPortArray, _shareInfoDoneP, _targetTime, _timeStep |
クラス ohymosj.OhTotalSystem から継承したメソッド |
addNewestDataTime, calculate, calculateTimeStep, canYouInputDataTime, deliverDataString, doShareInfo, getMediumTermTargetTime, getNecessaryTimeFrom, getNecessaryTimeTo, getNewestDataTimeCol, getTerminalTime, init, init, init, init, initialOutput, initialWork, inputData, makeDataString, outputData, printInputs, printInputs, printOutputs, printOutputs, readInitialStateFile, readParameterFile, readSendPortFile, registerReceivePorts, registerSendPorts, saveTerminalState, setOhymosjOption, work, writeSendPortStock, writeTerminalState |
クラス ohymosj.OhSubSystem から継承したメソッド |
areYouReady, calculateIterationStep, canYouCalculate, canYouRenewCurrentTime, canYouSwitch, clearDataString, connect, connect, connect, connect, connect, connect, connect, construct, doInitialWork, doYouConverge, doYouReachTargetTime, flushData, getComponent, getComponent, getInitialState, getNecessaryTimeFrom, getNecessaryTimeTo, getParameter, init, init, init, init, init, initializeIteratorArray, initializeTargetTime, isInitialTime, printComponents, printComponents, register, register, register, renewFixedTime, renewTargetTime, rewindCurrentTime, saveSendPortStock, setParameter, terminalState |
クラス ohymosj.OhElement から継承したメソッド |
calculateIterationStep, calReq, canYouCalculate0, canYouCalculate1, canYouGetDataString, canYouRenewCurrentTime, canYouSetObjectArray, canYouShareInfo, create, doYouConverge, doYouReachTargetTime, flushData, getComponent, getComponent, getCurrentTime, getFixedTime, getFromArray, getFromArray, getFromList, getFromList, getNecessaryTimeFrom, getNecessaryTimeTo, getNextTime, getObject, getObject, getReceivePort, getReceivePort, getReceivePort, getReceivePort, getSendPort, getSendPort, getSendPort, getSendPort, getTargetTime, getTimeStep, init, makeObjectArray, printConnection, printConnection, printConnection, printConnection, printObjects, printReceivePorts, printReceivePorts, printReceivePorts, printReceivePorts, printSendPorts, printSendPorts, printSendPorts, printSendPorts, printStatus, recordStatus, reduceDataPackStock, renewFixedTime, renewTargetTime, restoreSendPortStock, rewindCurrentTime, sendStockedData, setCur2Fix2Tar, setDataPackArray, work0, work1, work2 |
クラス ohymosj.OhObject から継承したメソッド |
cPrint, getAbsName, getClassName, getObjectName, getObjectNumber, getOwner, getTopOwner, objCompare, objCompare, objCompare, oPrint, setOwner |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_inFlow0
protected OhInputFileDouble _inFlow0
_inFlow1
protected OhInputFileDouble _inFlow1
_outQ
protected OhOutputFileDouble _outQ
_outStorage
protected OhOutputFileDouble _outStorage
_dam
protected SimpleDam _dam
TestSimpleDam
public TestSimpleDam()
throws OhError
registerInputPorts
public void registerInputPorts()
throws OhError
- クラス
OhTotalSystem
の記述:
-
入力端子を登録します。
抽象メソッドです。
全体系モデルのプログラマが定義する必要があります。
- 定義:
- クラス
OhTotalSystem
内の registerInputPorts
- 例外:
OhError
- if an error occurs
registerOutputPorts
public void registerOutputPorts()
throws OhError
- クラス
OhTotalSystem
の記述:
-
出力端子を登録します。
抽象メソッドです。
全体系モデルのプログラマが定義する必要があります。
- 定義:
- クラス
OhTotalSystem
内の registerOutputPorts
- 例外:
OhError
- if an error occurs
registerComponents
public void registerComponents()
throws OhError
- クラス
OhTotalSystem
の記述:
-
全体系の構成要素を登録する抽象メソッドです。
このクラスを継承して全体系を作成するプログラマは、
このメソッドを定義する必要があります。
- 定義:
- クラス
OhTotalSystem
内の registerComponents
- 例外:
OhError
- if an error occurs
registerIterators
public void registerIterators()
- クラス
OhTotalSystem
の記述:
-
反復計算する要素を _iteratorArray に登録します。
- 定義:
- クラス
OhTotalSystem
内の registerIterators
connectPorts
public void connectPorts()
throws OhError
- クラス
OhTotalSystem
の記述:
-
全体系モデル内部の端子の接続を
OhSubSystem.connect()
を用いて定義します。
- 定義:
- クラス
OhTotalSystem
内の connectPorts
- 例外:
OhError
- if an error occurs
connectComponents
public void connectComponents()
- クラス
OhTotalSystem
の記述:
-
全体系モデル内の構成オブジェクトの接続を行ないます。
全体系モデル内部の直接通信接続を
OhElement.register(Object, int)
を用いて定義します。
抽象メソッドなので派生クラスで必ず定義して下さい。
- 定義:
- クラス
OhTotalSystem
内の connectComponents
setInitialState
public void setInitialState(OhBufferedReader aBr)
throws OhError
- クラス
OhTotalSystem
の記述:
-
文字入力ストリーム aBr から _currentTime を読み込みます。
ファイルから _currentTime を読み取る場合がほとんどと思われます。
必要なら、継承してつくる全体系モデルで変更してください。
- オーバーライド:
- クラス
OhTotalSystem
内の setInitialState
- パラメータ:
aBr
- an OhBufferedReader
value
- 例外:
OhError
- if an error occurs