All Packages Class Hierarchy This Package Previous Next Index
Class kl1.lang.WTC
java.lang.Object
|
+----kl1.lang.WTC
- public class WTC
- extends Object
This class represents a WTC (Weighted Throw Count).
- Author:
- Satoshi KURAMOCHI
-
ANSWER_WTC_UNIT
-
-
MIN_WTC
-
-
NODE_WTC_LIMIT
-
-
READ_WTC_UNIT
-
-
RETURN_WTC_UNIT
-
-
SUPPLY_WTC_UNIT
-
-
THROW_WTC_UNIT
-
-
UNIFY_WTC_UNIT
-
-
WTC(int)
- Constructs a WTC.
-
add(int)
-
-
get(int)
-
-
getAll()
-
-
isZero()
-
-
toString()
-
SUPPLY_WTC_UNIT
static final int SUPPLY_WTC_UNIT
THROW_WTC_UNIT
static final int THROW_WTC_UNIT
UNIFY_WTC_UNIT
static final int UNIFY_WTC_UNIT
NODE_WTC_LIMIT
static final int NODE_WTC_LIMIT
RETURN_WTC_UNIT
static final int RETURN_WTC_UNIT
MIN_WTC
static final int MIN_WTC
READ_WTC_UNIT
static final int READ_WTC_UNIT
ANSWER_WTC_UNIT
static final int ANSWER_WTC_UNIT
WTC
public WTC(int value)
- Constructs a WTC.
- Parameters:
- value - a value.
isZero
public synchronized boolean isZero()
get
public synchronized int get(int amount)
getAll
public synchronized int getAll()
add
public synchronized int add(int amount)
toString
public synchronized String toString()
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index