boolean containRelayState(String relayState){
  return relayStateMap.containsKey(relayState);
}

boolean containRelayState ( String relayState ) { return relayStateMap . containsKey ( relayState ) ; }
returns true if the specified relay state is one of the keys in relaystatemap , false otherwise .
