Inherits ResourceInstance.
Public Member Functions | |
| SquidFakeResource () | |
| Creates a new SquidFakeResource with the default values. | |
| SquidFakeResource (ResourceInstance resourceInstance) | |
| Creates a new SquidFakeResource based on a generic ResourceInstance. | |
| Job | getSample (String sensor) |
| Creates a new Job which once executed, returns the last value returned by this method plus one, starting with zero. | |
| Job | getSamples () |
| Creates a new Job which once executed, returns the last value returned by this method plus one, starting with zero. | |
Static Public Member Functions | |
| static SquidFakeResource | cast (ResourceInstance resourceInstance) |
| Converts a generic ResourceInstance into a new one of type SquidFakeResource. | |
Static Public Attributes | |
| static final String | ID = "SquidFake" |
| String containing the identifier for this resource. | |
It is conceived to do some tests easily, therefore reducing dependencies.
| com.abiquo.api.resources.SquidFakeResource.SquidFakeResource | ( | ResourceInstance | resourceInstance | ) |
Creates a new SquidFakeResource based on a generic ResourceInstance.
| resourceInstance | The generic ResourceInstance |
| static SquidFakeResource com.abiquo.api.resources.SquidFakeResource.cast | ( | ResourceInstance | resourceInstance | ) | [static] |
Converts a generic ResourceInstance into a new one of type SquidFakeResource.
| resourceInstance | The generic ResourceInstance |
| Job com.abiquo.api.resources.SquidFakeResource.getSample | ( | String | sensor | ) |
Creates a new Job which once executed, returns the last value returned by this method plus one, starting with zero.
| sensor | An string containing the name of the sensor which we want to capture. Sample values: humidity, lightness, temperature. |
| Job com.abiquo.api.resources.SquidFakeResource.getSamples | ( | ) |
Creates a new Job which once executed, returns the last value returned by this method plus one, starting with zero.
final String com.abiquo.api.resources.SquidFakeResource.ID = "SquidFake" [static] |
String containing the identifier for this resource.
1.5.5