com.cumulocity.model.control
Class Relay

java.lang.Object
  extended by 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

Nested Class Summary
static class Relay.RelayState
           
 
Constructor Summary
Relay()
           
 
Method Summary
 Relay.RelayState getRelayState()
           
 void setRelayState(Relay.RelayState relayState)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Relay

public Relay()
Method Detail

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.