public abstract class AbstractPass extends java.lang.Object implements Pass
Modifier and Type | Field and Description |
---|---|
protected long |
exclusive_time
If the pass is running, the time that the pass started.
|
protected Goal |
goal |
protected long |
inclusive_time
If the pass is running, the time that the pass started.
|
Constructor and Description |
---|
AbstractPass(Goal goal) |
Modifier and Type | Method and Description |
---|---|
long |
exclusiveTime()
Return the time in ms taken to run the pass, excluding the time in
spawned passes
|
Goal |
goal()
The goal the pass is trying to satisfy.
|
long |
inclusiveTime()
Return the time in ms taken to run the pass, including the time in
spawned passes
|
java.lang.String |
name()
The human-readable name of the pass.
|
void |
resetTimers()
Reset the pass timer.
|
abstract boolean |
run()
Run the pass, returning true on success.
|
void |
toggleTimers(boolean exclusive_only)
Start or stop the pass timer.
|
java.lang.String |
toString() |
protected Goal goal
protected long exclusive_time
protected long inclusive_time
public AbstractPass(Goal goal)
public Goal goal()
Pass
public java.lang.String name()
public abstract boolean run()
public void toggleTimers(boolean exclusive_only)
toggleTimers
in interface Pass
public void resetTimers()
resetTimers
in interface Pass
public long exclusiveTime()
exclusiveTime
in interface Pass
public long inclusiveTime()
inclusiveTime
in interface Pass
public java.lang.String toString()
toString
in class java.lang.Object