|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--coins.driver.StopWatch
A stop-watch.
This stop-watch is not moving when created, and starts when its start
button is pushed. Its hand keeps moving until the stop button is pushd.
You can read the time ever accumulated by this stop-watch, by mili-second
order, whether it is moving or not. After the stop-watch is started and
stopped, it can be restarted by pushing its start button again.
フィールドの概要 | |
(パッケージプライベート) long |
cumulativeMiliSeconds
|
(パッケージプライベート) boolean |
moving
|
(パッケージプライベート) java.util.Date |
startedTime
|
(パッケージプライベート) java.util.Date |
stoppedTime
|
コンストラクタの概要 | |
StopWatch()
Creates a new stop-watch, whose hand is heading zero mili-second and not moving. |
メソッドの概要 | |
boolean |
isMoving()
Tests if this stop-watch is moving or not. |
long |
read()
Reads this stop-watch, whether it is moving or not. |
long |
reset()
Resets this stop-watch. |
java.util.Date |
start()
Starts moving this stop-watch. |
java.util.Date |
stop()
Stops moving this stop-watch. |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
java.util.Date startedTime
java.util.Date stoppedTime
long cumulativeMiliSeconds
boolean moving
コンストラクタの詳細 |
public StopWatch()
メソッドの詳細 |
public java.util.Date start()
public java.util.Date stop()
public long read()
public boolean isMoving()
public long reset()
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |