a long value
と定義して下さい。 また、下記のようにメンバ変数 _k の値により _timeStep を変更することもできます。public long calculateTimeStep() { return 3600; }
_timeStep は、work() の中で設定されるので、public long calculateTimeStep() { return (_k > 0) ? 360 : 60; } public long calculateTimeStep() { return 360 * pow(10, _k); }
のように、このメソッドの中で変更しないでください。 抽象メソッドなので、派生クラスで必ず定義して下さい。 戻り値: 次回の計算のタイムステップ。[sec] In classes derived from class Element, its definition should be given. Please calculate "_timeStep" according to a model in each inherited class, and define the method which returns it as a return value. That is, it defines under what conditions "_timeStep" is made into what value.public long calculateTimeStep() { _timeStep = 1; return 1; }
例外の種類 | 条件 |
---|---|
OhError | if an error occurs |
OhElement クラス | OhymosNet 名前空間