/v3.2/nimbits-model/src/com/nimbits/client/model/point/Point.java
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 14package com.nimbits.client.model.point; 15 16import com.nimbits.client.model.ClientType; 17import com.nimbits.client.model.value.AlertType; 18import com.nimbits.client.model.value.Value; 19 20import java.io.Serializable; 21import java.util.Date; 22import java.util.List; 23 24/** 25 * Created by bsautner 26 * User: benjamin 27 * Date: 4/16/11 28 * Time: 12:04 PM 29 */ 30public interface Point extends Serializable { 31 32 int getAlarmDelay(); 33 34 boolean getAlarmToFacebook(); 35 36 AlertType getAlertState(); 37 38 long getCatID(); 39 40 ClientType getClientType(); 41 42 double getCompression(); 43 44 Date getCreateDate(); 45 46 String getDescription(); 47 48 int getExpire(); 49 50 String getFormula(); 51 52 double getHighAlarm(); 53 54 double getHighestRecordedValue(); 55 56 String getHost(); 57 58 long getId(); 59 60 boolean getIdleAlarmSent(); 61 62 int getIdleSeconds(); 63 64 boolean getIgnoreIncomingCompressedValues(); 65 66 String getJsonPointDataArray(); 67 68 long getLastAlarmSent(); 69 70 Date getLastChecked(); 71 72 double getLastLat(); 73 74 double getLastLng(); 75 76 String getLastNote(); 77 78 Date getLastRecordedTimestamp(); 79 80 double getLat(); 81 82 double getLng(); 83 84 double getLowAlarm(); 85 86 double getLowestRecordedValue(); 87 88 PointName getName(); 89 90 boolean getReadOnly(); 91 92 boolean getSendAlarmIM(); 93 94 boolean getSendAlarmTweet(); 95 96 boolean getSendIM(); 97 98 boolean getSendTweet(); 99 100 String getTag(); 101 102 long getTarget(); 103 104 double getTargetValue(); 105 106 String getUnit(); 107 108 long getUserFK(); 109 110 String getUuid(); 111 112 Value getValue(); 113 114 List<Value> getValues(); 115 116 long getX(); 117 118 long getY(); 119 120 long getZ(); 121 122 boolean isHighAlarmOn(); 123 124 boolean isIdleAlarmOn(); 125 126 boolean isLowAlarmOn(); 127 128 boolean isPostToFacebook(); 129 130 boolean isPublic(); 131 132 boolean isSystemPoint(); 133 134 void setAlarmDelay(final int alarmDelay); 135 136 void setAlarmToFacebook(final boolean alarmToFacebook); 137 138 void setAlertState(final AlertType alertState); 139 140 void setCatID(final long catID); 141 142 void setClientType(final ClientType clientType); 143 144 void setCompression(final double compression); 145 146 void setCreateDate(final Date createDate); 147 148 void setDescription(final String value); 149 150 void setExpire(final int expire); 151 152 void setFormula(final String formula); 153 154 void setHighAlarm(final double highAlarm); 155 156 void setHighAlarmOn(final boolean highAlarmOn); 157 158 void setHighestRecordedValue(final double highestRecordedValue); 159 160 void setHost(final String host); 161 162 void setId(final long id); 163 164 void setIdleAlarmOn(boolean idleAlarmOn); 165 166 void setIdleAlarmSent(final boolean idleAlarmSent); 167 168 void setIdleSeconds(int idleSeconds); 169 170 void setIgnoreIncomingCompressedValues(final boolean ignoreIncomingCompressedValues); 171 172 void setJsonPointDataArray(final String jsonPointDataArray); 173 174 void setLastAlarmSent(final long lastAlarmSent); 175 176 void setLastChecked(final Date lastChecked); 177 178 void setLastLat(final double lastLat); 179 180 void setLastLng(final double lastLng); 181 182 void setLastNote(final String lastNote); 183 184 void setLastRecordedTimestamp(final Date lastRecordedTimestamp); 185 186 void setLat(final double lat); 187 188 void setLng(final double lng); 189 190 void setLowAlarm(final double lowAlarm); 191 192 void setLowAlarmOn(final boolean lowAlarmOn); 193 194 void setLowestRecordedValue(final double lowestRecordedValue); 195 196 void setName(final PointName name); 197 198 void setPostToFacebook(final boolean postToFacebook); 199 200 void setPublic(final boolean isPublic); 201 202 void setReadOnly(final boolean readOnly); 203 204 void setSendAlarmIM(final boolean sendAlarmIM); 205 206 void setSendAlarmTweet(final boolean sendAlarmTweet); 207 208 void setSendIM(final boolean sendIM); 209 210 void setSendTweet(final boolean sendTweet); 211 212 void setSystemPoint(final boolean isSystemPoint); 213 214 void setTag(final String tag); 215 216 void setTarget(final long long1); 217 218 void setTargetValue(final double targetValue); 219 220 void setUnit(final String unit); 221 222 void setUserFK(final long userFK); 223 224 void setUuid(final String uuid); 225 226 void setValue(final Value value); 227 228 void setValues(final List<Value> values); 229 230 void setX(final long x); 231 232 void setY(final long y); 233 234 void setZ(final long z); 235 236 boolean isAlarmToEmail(); 237 238 void setAlarmToEmail(boolean alarmToEmail); 239 240 241}