Class s7sdk.CapabilityState
Manages a set of capability states. Exposes an interface to access and mutate the state.
Constructor Attributes | Constructor Name and Description |
---|---|
s7sdk.CapabilityState(caps)
|
Method Attributes | Method Name and Description |
---|---|
clone()
Returns a clone of the
CapabilityState object. |
|
hasCapability(caps)
Returns a
Boolean indicating the presence of particular capabilities. |
|
toString()
Returns the names of all active capabilities in a comma separated list.
|
Class Detail
s7sdk.CapabilityState(caps)
- Parameters:
- {Number} caps
- (Optional) The initial capabilities. If undefined, then no capabilities are set.
Method Detail
{s7sdk.CapabilityState}
clone()
Returns a clone of the
CapabilityState
object.
- Returns:
- {s7sdk.CapabilityState} A clone of the
CapabilityState
object.
{Boolean}
hasCapability(caps)
Returns a
Boolean
indicating the presence of particular capabilities.
- Parameters:
- {Number} caps
- A capabilities value.
- Returns:
- {Boolean} Indicates the existence of the specified capabilities.
{String}
toString()
Returns the names of all active capabilities in a comma separated list.
- Returns:
- {String} A comma separated list of capability names.