com.cumulocity.model.control
Class Relay
java.lang.Object
com.cumulocity.model.control.Relay
public class Relay
- extends Object
Provides a representation for an electrical relay.
A relay is an electrical operated switch that can be in one of two states: OPEN or CLOSED.
If the relay is OPEN, it breaks the circuit and electrical current does not flow.
- Author:
- ricardomarques
Constructor Summary |
Relay()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Relay
public Relay()
getRelayState
public final Relay.RelayState getRelayState()
- Returns:
- the relayState
setRelayState
public final void setRelayState(Relay.RelayState relayState)
- Parameters:
relayState
- the relayState to set
Copyright © 2013 (C) Cumulocity GmbH. All Rights Reserved.