Documentation for resource/Resource.kt¶
-
interfaceResource¶
A resource is an abstract representation of a platform.
Each resource provides a unique identification, a list of capabilities, and information about the status of the resource.
- since
1.0.0
- author
IFS Institute for Software
-
valpayloadDrivers: List<String>¶ The id of the payload driver if any
- Since
1.0.0
-
valcapabilities: List<Capability<*>>¶ The list of capabilities of this resource
- Since
1.0.0
-
funhas(capability: Capability<*>) : Boolean¶ Check if the resource has the given capability
- Parameters
capability – The desired capability
- Returns
true iff. the resource has the desired capability, false otherwise
- Since
1.0.0
-
enum classStatus¶ A [resource][Resource] can be in one of several states, allowing for further filtering
- Since
1.0.0
UNAVAILABLE
AVAILABLE
ACQUIRED
BUSY
FAILED
-