Trigger

public final class Trigger extends Toggleable

Represents the state of a trigger.

Constructors

Link copied to clipboard
public Trigger Trigger(Float value, Float threshold)
public Trigger Trigger(Float value)

Properties

Link copied to clipboard
private final Boolean lastState
Link copied to clipboard
private final Float lastValue
Link copied to clipboard
private final Boolean state
Link copied to clipboard
private Float threshold
Link copied to clipboard
private final Float value

Functions

Link copied to clipboard
Link copied to clipboard
public final Float getLastValue()
Link copied to clipboard
public Boolean getState()
Link copied to clipboard
public final Float getThreshold()
Link copied to clipboard
public final Float getValue()
Link copied to clipboard
public final Unit setThreshold(Float threshold)
Link copied to clipboard
public final Unit update(Float newValue)