public class P_Task_Shutdown
extends java.lang.Object
Constructor and Description |
---|
P_Task_Shutdown(IBleManager manager,
com.idevicesinc.sweetblue.internal.PA_Task.I_StateListener listener) |
Modifier and Type | Method and Description |
---|---|
protected void |
attemptToSoftlyCancel(com.idevicesinc.sweetblue.internal.PA_Task task) |
protected void |
clearFromQueue() |
int |
compareTo(com.idevicesinc.sweetblue.internal.PA_Task t) |
protected void |
fail() |
protected void |
failImmediately() |
protected void |
failWithoutRetry() |
double |
getAggregatedTimeArmedAndExecuting() |
protected java.util.UUID |
getCharUuid() |
protected java.util.UUID |
getDescUuid() |
IBleDevice |
getDevice() |
protected double |
getInitialTimeout() |
protected P_Logger |
getLogger() |
IBleManager |
getManager() |
com.idevicesinc.sweetblue.internal.PE_TaskPriority |
getPriority() |
protected com.idevicesinc.sweetblue.internal.P_TaskManager |
getQueue() |
IBleServer |
getServer() |
protected BleTask |
getTaskType() |
double |
getTimeout() |
protected java.lang.String |
getToStringAddition() |
double |
getTotalTime() |
double |
getTotalTime(long currentTime) |
double |
getTotalTimeExecuting() |
double |
getTotalTimeExecuting(long currentTime) |
protected boolean |
isArmable() |
boolean |
isCancellableBy(com.idevicesinc.sweetblue.internal.PA_Task task) |
protected boolean |
isExecutable() |
boolean |
isExplicit() |
boolean |
isFor(java.lang.Class<? extends com.idevicesinc.sweetblue.internal.PA_Task_ConnectOrDisconnectServer> taskClass,
IBleServer server,
java.lang.String macAddress) |
boolean |
isInterruptableBy(com.idevicesinc.sweetblue.internal.PA_Task task) |
protected boolean |
isMoreImportantThan_default(com.idevicesinc.sweetblue.internal.PA_Task task)
Default implementation to call by subsubclasses if they want to skip their immediate parent's implementation.
|
boolean |
isMoreImportantThan(com.idevicesinc.sweetblue.internal.PA_Task task) |
protected boolean |
isSoftlyCancellableBy(com.idevicesinc.sweetblue.internal.PA_Task task) |
protected void |
onNotExecutable() |
protected void |
redundant() |
protected void |
selfInterrupt() |
protected void |
softlyCancel() |
protected void |
succeed() |
protected void |
timeout() |
java.lang.String |
toString() |
boolean |
tryExecuting()
Returns
true if P_TaskManager.print() ends up getting called. |
protected void |
update(double timeStep) |
boolean |
wasSoftlyCancelled() |
public P_Task_Shutdown(IBleManager manager, com.idevicesinc.sweetblue.internal.PA_Task.I_StateListener listener)
protected BleTask getTaskType()
public com.idevicesinc.sweetblue.internal.PE_TaskPriority getPriority()
protected double getInitialTimeout()
protected java.util.UUID getCharUuid()
protected java.util.UUID getDescUuid()
protected P_Logger getLogger()
protected void timeout()
protected void redundant()
protected void succeed()
protected void fail()
protected void clearFromQueue()
protected void failImmediately()
protected void selfInterrupt()
protected void softlyCancel()
protected void failWithoutRetry()
protected boolean isExecutable()
protected boolean isArmable()
public boolean tryExecuting()
true
if P_TaskManager.print()
ends up getting called.protected void onNotExecutable()
protected void update(double timeStep)
public double getTotalTimeExecuting()
public double getTotalTimeExecuting(long currentTime)
public double getTotalTime()
public double getTotalTime(long currentTime)
public double getAggregatedTimeArmedAndExecuting()
public boolean isFor(java.lang.Class<? extends com.idevicesinc.sweetblue.internal.PA_Task_ConnectOrDisconnectServer> taskClass, IBleServer server, java.lang.String macAddress)
public IBleDevice getDevice()
public IBleServer getServer()
public IBleManager getManager()
public double getTimeout()
protected com.idevicesinc.sweetblue.internal.P_TaskManager getQueue()
public boolean isMoreImportantThan(com.idevicesinc.sweetblue.internal.PA_Task task)
protected boolean isMoreImportantThan_default(com.idevicesinc.sweetblue.internal.PA_Task task)
public boolean isInterruptableBy(com.idevicesinc.sweetblue.internal.PA_Task task)
public boolean isCancellableBy(com.idevicesinc.sweetblue.internal.PA_Task task)
protected boolean isSoftlyCancellableBy(com.idevicesinc.sweetblue.internal.PA_Task task)
protected void attemptToSoftlyCancel(com.idevicesinc.sweetblue.internal.PA_Task task)
public boolean wasSoftlyCancelled()
protected java.lang.String getToStringAddition()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isExplicit()
public int compareTo(com.idevicesinc.sweetblue.internal.PA_Task t)
compareTo
in interface java.lang.Comparable<com.idevicesinc.sweetblue.internal.PA_Task>