Package com.digitaldan.jomnilinkII

Examples of com.digitaldan.jomnilinkII.Message


     * @throws OmniUnknownMessageTypeException
     */
    private UnitProperties readUnitProperties(int number)
        throws IOException, OmniNotConnectedException,
        OmniInvalidResponseException, OmniUnknownMessageTypeException {
      Message m = c.reqObjectProperties(Message.OBJ_TYPE_UNIT, number, 0,
          ObjectProperties.FILTER_1_NAMED,
          ObjectProperties.FILTER_2_AREA_ALL,
          ObjectProperties.FILTER_3_ANY_LOAD);
      if (m.getMessageType() == Message.MESG_TYPE_OBJ_PROP) {
        return ((UnitProperties) m);
      }
      return null;
    }
View Full Code Here


     */
    private ThermostatProperties readThermoProperties(int number)
        throws IOException, OmniNotConnectedException,
        OmniInvalidResponseException, OmniUnknownMessageTypeException {

      Message m = c.reqObjectProperties(Message.OBJ_TYPE_THERMO, number,
          0, ObjectProperties.FILTER_1_NAMED,
          ObjectProperties.FILTER_2_AREA_ALL,
          ObjectProperties.FILTER_3_ANY_LOAD);
      if (m.getMessageType() == Message.MESG_TYPE_OBJ_PROP) {
        return ((ThermostatProperties) m);
      }
      return null;
    }
View Full Code Here

     */
    private AuxSensorProperties readAuxProperties(int number)
        throws IOException, OmniNotConnectedException,
        OmniInvalidResponseException, OmniUnknownMessageTypeException {

      Message m = c.reqObjectProperties(Message.OBJ_TYPE_AUX_SENSOR,
          number, 0, ObjectProperties.FILTER_1_NAMED,
          ObjectProperties.FILTER_2_AREA_ALL,
          ObjectProperties.FILTER_3_ANY_LOAD);
      if (m.getMessageType() == Message.MESG_TYPE_OBJ_PROP) {
        return ((AuxSensorProperties) m);
      }
      return null;
    }
View Full Code Here

     */
    private AudioZoneProperties readAudioZoneProperties(int number)
        throws IOException, OmniNotConnectedException,
        OmniInvalidResponseException, OmniUnknownMessageTypeException {

      Message m = c.reqObjectProperties(Message.OBJ_TYPE_AUDIO_ZONE,
          number, 0, ObjectProperties.FILTER_1_NAMED,
          ObjectProperties.FILTER_2_NONE,
          ObjectProperties.FILTER_3_NONE);
      if (m.getMessageType() == Message.MESG_TYPE_OBJ_PROP) {
        return ((AudioZoneProperties) m);
      }
      return null;
    }
View Full Code Here

     */
    private AreaProperties readAreaProperties(int number)
        throws IOException, OmniNotConnectedException,
        OmniInvalidResponseException, OmniUnknownMessageTypeException {

      Message m = c.reqObjectProperties(Message.OBJ_TYPE_AREA, number, 0,
          ObjectProperties.FILTER_1_NAMED_UNAMED,
          ObjectProperties.FILTER_2_NONE,
          ObjectProperties.FILTER_3_NONE);
      if (m.getMessageType() == Message.MESG_TYPE_OBJ_PROP) {
        return ((AreaProperties) m);
      }
      return null;
    }
View Full Code Here

     */
    private ZoneProperties readZoneProperties(int number)
        throws IOException, OmniNotConnectedException,
        OmniInvalidResponseException, OmniUnknownMessageTypeException {

      Message m = c.reqObjectProperties(Message.OBJ_TYPE_ZONE, number, 0,
          ObjectProperties.FILTER_1_NAMED,
          ObjectProperties.FILTER_2_AREA_ALL,
          ObjectProperties.FILTER_3_ANY_LOAD);
      if (m.getMessageType() == Message.MESG_TYPE_OBJ_PROP) {
        return ((ZoneProperties) m);
      }
      return null;
    }
View Full Code Here

     */
    private ButtonProperties readButtonProperties(int number)
        throws IOException, OmniNotConnectedException,
        OmniInvalidResponseException, OmniUnknownMessageTypeException {

      Message m = c.reqObjectProperties(Message.OBJ_TYPE_BUTTON, number,
          0, ObjectProperties.FILTER_1_NAMED,
          ObjectProperties.FILTER_2_NONE,
          ObjectProperties.FILTER_3_NONE);
      if (m.getMessageType() == Message.MESG_TYPE_OBJ_PROP) {
        return ((ButtonProperties) m);
      }
      return null;
    }
View Full Code Here

     */
    private void readAllAudioSources() throws IOException,
        OmniNotConnectedException, OmniInvalidResponseException,
        OmniUnknownMessageTypeException {
      int objnum = 0;
      Message m;
      while ((m = c.reqObjectProperties(Message.OBJ_TYPE_AUDIO_SOURCE,
          objnum, 1, ObjectProperties.FILTER_1_NAMED,
          ObjectProperties.FILTER_2_NONE,
          ObjectProperties.FILTER_3_NONE)).getMessageType() == Message.MESG_TYPE_OBJ_PROP) {
        // logger.info(m.toString());
View Full Code Here

        OmniUnknownMessageTypeException {
      Iterator<Integer> it = audioSourceMap.keySet().iterator();
      while (it.hasNext()) {
        Integer source = it.next();
        int pos = 0;
        Message m;
        boolean updated = false;
        Vector<String> text = new Vector<String>();
        while ((m = c.reqAudioSourceStatus(source.intValue(), pos)).getMessageType() == Message.MESG_TYPE_AUDIO_SOURCE_STATUS) {
          AudioSourceStatus a = (AudioSourceStatus) m;
          text.add(a.getSourceData());
View Full Code Here

    //Group  Lights  "Lights"  (All)
    groups.append(String.format(groupString,groupName,"Lights","All"));

    int objnum = 0;
    Message m;
    int currentRoom = 0;
    String currentRoomName = null;

    while ((m = c.reqObjectProperties(Message.OBJ_TYPE_UNIT, objnum, 1, ObjectProperties.FILTER_1_NAMED,
        ObjectProperties.FILTER_2_AREA_ALL, ObjectProperties.FILTER_3_ANY_LOAD)).getMessageType() == Message.MESG_TYPE_OBJ_PROP) {
View Full Code Here

TOP

Related Classes of com.digitaldan.jomnilinkII.Message

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.