/v3.2/nimbits-model/src/com/nimbits/client/model/point/Point.java

http://nimbits-server.googlecode.com/ · Java · 241 lines · 113 code · 110 blank · 18 comment · 0 complexity · 1d1d5f48984b3d56cb0114a86f4369e5 MD5 · raw file

  1. /*
  2. * Copyright (c) 2010 Tonic Solutions LLC.
  3. *
  4. * http://www.nimbits.com
  5. *
  6. *
  7. * Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
  8. *
  9. * http://www.gnu.org/licenses/gpl.html
  10. *
  11. * Unless required by applicable law or agreed to in writing, software distributed under the license is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
  12. */
  13. package com.nimbits.client.model.point;
  14. import com.nimbits.client.model.ClientType;
  15. import com.nimbits.client.model.value.AlertType;
  16. import com.nimbits.client.model.value.Value;
  17. import java.io.Serializable;
  18. import java.util.Date;
  19. import java.util.List;
  20. /**
  21. * Created by bsautner
  22. * User: benjamin
  23. * Date: 4/16/11
  24. * Time: 12:04 PM
  25. */
  26. public interface Point extends Serializable {
  27. int getAlarmDelay();
  28. boolean getAlarmToFacebook();
  29. AlertType getAlertState();
  30. long getCatID();
  31. ClientType getClientType();
  32. double getCompression();
  33. Date getCreateDate();
  34. String getDescription();
  35. int getExpire();
  36. String getFormula();
  37. double getHighAlarm();
  38. double getHighestRecordedValue();
  39. String getHost();
  40. long getId();
  41. boolean getIdleAlarmSent();
  42. int getIdleSeconds();
  43. boolean getIgnoreIncomingCompressedValues();
  44. String getJsonPointDataArray();
  45. long getLastAlarmSent();
  46. Date getLastChecked();
  47. double getLastLat();
  48. double getLastLng();
  49. String getLastNote();
  50. Date getLastRecordedTimestamp();
  51. double getLat();
  52. double getLng();
  53. double getLowAlarm();
  54. double getLowestRecordedValue();
  55. PointName getName();
  56. boolean getReadOnly();
  57. boolean getSendAlarmIM();
  58. boolean getSendAlarmTweet();
  59. boolean getSendIM();
  60. boolean getSendTweet();
  61. String getTag();
  62. long getTarget();
  63. double getTargetValue();
  64. String getUnit();
  65. long getUserFK();
  66. String getUuid();
  67. Value getValue();
  68. List<Value> getValues();
  69. long getX();
  70. long getY();
  71. long getZ();
  72. boolean isHighAlarmOn();
  73. boolean isIdleAlarmOn();
  74. boolean isLowAlarmOn();
  75. boolean isPostToFacebook();
  76. boolean isPublic();
  77. boolean isSystemPoint();
  78. void setAlarmDelay(final int alarmDelay);
  79. void setAlarmToFacebook(final boolean alarmToFacebook);
  80. void setAlertState(final AlertType alertState);
  81. void setCatID(final long catID);
  82. void setClientType(final ClientType clientType);
  83. void setCompression(final double compression);
  84. void setCreateDate(final Date createDate);
  85. void setDescription(final String value);
  86. void setExpire(final int expire);
  87. void setFormula(final String formula);
  88. void setHighAlarm(final double highAlarm);
  89. void setHighAlarmOn(final boolean highAlarmOn);
  90. void setHighestRecordedValue(final double highestRecordedValue);
  91. void setHost(final String host);
  92. void setId(final long id);
  93. void setIdleAlarmOn(boolean idleAlarmOn);
  94. void setIdleAlarmSent(final boolean idleAlarmSent);
  95. void setIdleSeconds(int idleSeconds);
  96. void setIgnoreIncomingCompressedValues(final boolean ignoreIncomingCompressedValues);
  97. void setJsonPointDataArray(final String jsonPointDataArray);
  98. void setLastAlarmSent(final long lastAlarmSent);
  99. void setLastChecked(final Date lastChecked);
  100. void setLastLat(final double lastLat);
  101. void setLastLng(final double lastLng);
  102. void setLastNote(final String lastNote);
  103. void setLastRecordedTimestamp(final Date lastRecordedTimestamp);
  104. void setLat(final double lat);
  105. void setLng(final double lng);
  106. void setLowAlarm(final double lowAlarm);
  107. void setLowAlarmOn(final boolean lowAlarmOn);
  108. void setLowestRecordedValue(final double lowestRecordedValue);
  109. void setName(final PointName name);
  110. void setPostToFacebook(final boolean postToFacebook);
  111. void setPublic(final boolean isPublic);
  112. void setReadOnly(final boolean readOnly);
  113. void setSendAlarmIM(final boolean sendAlarmIM);
  114. void setSendAlarmTweet(final boolean sendAlarmTweet);
  115. void setSendIM(final boolean sendIM);
  116. void setSendTweet(final boolean sendTweet);
  117. void setSystemPoint(final boolean isSystemPoint);
  118. void setTag(final String tag);
  119. void setTarget(final long long1);
  120. void setTargetValue(final double targetValue);
  121. void setUnit(final String unit);
  122. void setUserFK(final long userFK);
  123. void setUuid(final String uuid);
  124. void setValue(final Value value);
  125. void setValues(final List<Value> values);
  126. void setX(final long x);
  127. void setY(final long y);
  128. void setZ(final long z);
  129. boolean isAlarmToEmail();
  130. void setAlarmToEmail(boolean alarmToEmail);
  131. }