|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.anji.nn.StepHourglassConnection
public class StepHourglassConnection
StepHourglassConnection Connection returning a value between 0 and 1, where 1 indicates the fully allotted amount of time remaining and 0 indicates no time remainnig.
Field Summary |
---|
Fields inherited from interface com.anji.nn.Connection |
---|
XML_TAG |
Constructor Summary | |
---|---|
StepHourglassConnection()
ctor |
Method Summary | |
---|---|
long |
cost()
|
double |
read()
returns ratio of time remaining to total time |
void |
reset()
reset hourglass to have max time remaining |
void |
reset(int aMaxSteps)
reset hourglass to have max time remaining |
void |
step()
proceed one step closer to completion |
java.lang.String |
toString()
|
java.lang.String |
toXml()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StepHourglassConnection()
Method Detail |
---|
public void reset(int aMaxSteps)
aMaxSteps
- maximum steps before hourglass is emptypublic void reset()
public double read()
read
in interface Connection
Connection.read()
public void step()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public java.lang.String toXml()
toXml
in interface Connection
Connection.toXml()
public long cost()
cost
in interface Connection
Connection.cost()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |