|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.boxed_economy.besp.model.fmfw.Clock
org.boxed_economy.components.realclock.RealClock
Clockを実時間で実装します。 実時間の実装はjavaのGregorianCalendarクラスに依存します。(RealTimeOfDayを参照)
フィールドの概要 | |
static java.util.ResourceBundle |
resource
|
コンストラクタの概要 | |
RealClock()
デフォルトコンストラクタ 実timeOfDayにdefaultvalueを与えて生成します。 |
メソッドの概要 | |
void |
gain()
timeOfDayがtimeForStepminuteだけ進みます。 |
TimeOfDay |
getCurrentTimeOfDay()
現在のtimeOfDayを返します |
Time |
getTimeForStep()
clockEventを発信するたびに進めるhourを取得します。 |
void |
setCurrentTimeOfDay(TimeOfDay timeOfDay)
現在のtimeOfDayを設定します。 |
void |
setTimeForStep(Time newtimeForStep)
clockEventを発信するたびに進めるhourを設定します。 |
java.lang.String |
toString()
|
クラス org.boxed_economy.besp.model.fmfw.Clock から継承したメソッド |
fireClockGained, firePrepareStepStart, fireStepCompleted, getWorld, prepareStep, receiveTimeEvent, setWorld |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
フィールドの詳細 |
public static java.util.ResourceBundle resource
コンストラクタの詳細 |
public RealClock()
メソッドの詳細 |
public void gain()
Clock
内の gain
public TimeOfDay getCurrentTimeOfDay()
public void setCurrentTimeOfDay(TimeOfDay timeOfDay)
public Time getTimeForStep()
public void setTimeForStep(Time newtimeForStep)
newtimeForStep
- 新しく設定するステップあたりrunTimepublic java.lang.String toString()
Object.toString()
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |