java.io.Serializablepublic class VacuumConsumableStatus
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Class | Description |
|---|---|---|
static class |
VacuumConsumableStatus.Names |
| Modifier and Type | Field | Description |
|---|---|---|
static int |
FILTER_TIME_BETWEEN_CHANGE |
|
static int |
MAIN_BRUSH_TIME_BETWEEN_CHANGE |
|
static int |
SENSOR_TIME_BETWEEN_CLEANING |
|
static int |
SIDE_BRUSH_TIME_BETWEEN_CHANGE |
| Constructor | Description |
|---|---|
VacuumConsumableStatus(int mainBrushWorkTime,
int sensorTimeSinceCleaning,
int sideBrushWorkTime,
int filterWorkTime) |
Create a new consumable status object.
|
VacuumConsumableStatus(org.json.JSONObject consumables) |
Generate a new consumable status object from the response of a device.
|
| Modifier and Type | Method | Description |
|---|---|---|
org.json.JSONObject |
construct() |
Construct the message the vacuum sends to the controlling device.
|
boolean |
equals(java.lang.Object o) |
|
float |
getFilterWorkPercent() |
|
int |
getFilterWorkTime() |
|
int |
getFilterWorkTimeLeft() |
|
float |
getMainBrushWorkPercent() |
|
int |
getMainBrushWorkTime() |
|
int |
getMainBrushWorkTimeLeft() |
|
float |
getSensorPercentSinceCleaning() |
|
int |
getSensorTimeSinceCleaning() |
|
int |
getSensorTimeSinceCleaningLeft() |
|
float |
getSideBrushWorkPercent() |
|
int |
getSideBrushWorkTime() |
|
int |
getSideBrushWorkTimeLeft() |
|
int |
hashCode() |
|
void |
reset(java.lang.String name) |
Reset a consumable.
|
void |
setFilterWorkTime(int filterWorkTime) |
|
void |
setMainBrushWorkTime(int mainBrushWorkTime) |
|
void |
setSensorTimeSinceCleaning(int sensorTimeSinceCleaning) |
|
void |
setSideBrushWorkTime(int sideBrushWorkTime) |
|
java.lang.String |
toString() |
public static final int MAIN_BRUSH_TIME_BETWEEN_CHANGE
public static final int SIDE_BRUSH_TIME_BETWEEN_CHANGE
public static final int FILTER_TIME_BETWEEN_CHANGE
public static final int SENSOR_TIME_BETWEEN_CLEANING
public VacuumConsumableStatus(int mainBrushWorkTime,
int sensorTimeSinceCleaning,
int sideBrushWorkTime,
int filterWorkTime)
mainBrushWorkTime - The time the main brush has been running.sensorTimeSinceCleaning - The time since the cliff sensors have been cleaned.sideBrushWorkTime - The time the side brush has been running.filterWorkTime - The time the filter has been in use.public VacuumConsumableStatus(org.json.JSONObject consumables)
consumables - The response to parse.public org.json.JSONObject construct()
public void reset(java.lang.String name)
name - The consumable to reset.public int getMainBrushWorkTime()
public int getSensorTimeSinceCleaning()
public int getSideBrushWorkTime()
public int getFilterWorkTime()
public void setMainBrushWorkTime(int mainBrushWorkTime)
mainBrushWorkTime - The time the main brush has been working for.public void setSensorTimeSinceCleaning(int sensorTimeSinceCleaning)
sensorTimeSinceCleaning - The time since the last time the cliff sensors have been cleaned.public void setSideBrushWorkTime(int sideBrushWorkTime)
sideBrushWorkTime - The time the side brush has been working for.public void setFilterWorkTime(int filterWorkTime)
filterWorkTime - The time the filter has been in use.public int getMainBrushWorkTimeLeft()
public int getSensorTimeSinceCleaningLeft()
public int getSideBrushWorkTimeLeft()
public int getFilterWorkTimeLeft()
public float getMainBrushWorkPercent()
public float getSensorPercentSinceCleaning()
public float getSideBrushWorkPercent()
public float getFilterWorkPercent()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2018. All rights reserved.