PageRenderTime 12ms CodeModel.GetById 2ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

/v3.2/nimbits-tds/src/com/nimbits/client/service/recordedvalues/RecordedValueService.java

http://nimbits-server.googlecode.com/
Java | 60 lines | 29 code | 18 blank | 13 comment | 0 complexity | f302b5e4d0dccf1e68fb5eceb7cfeb5c 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 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.service.recordedvalues;
15
16import com.google.gwt.user.client.rpc.RemoteService;
17import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
18import com.nimbits.client.exception.NimbitsException;
19import com.nimbits.client.exceptions.CalculationFailedException;
20import com.nimbits.client.model.point.Point;
21import com.nimbits.client.model.point.PointName;
22import com.nimbits.client.model.timespan.Timespan;
23import com.nimbits.client.model.user.User;
24import com.nimbits.client.model.usercontext.UserContext;
25import com.nimbits.client.model.value.Value;
26
27import java.util.Date;
28import java.util.List;
29
30@RemoteServiceRelativePath("data")
31public interface RecordedValueService extends RemoteService {
32
33    List<Point> getDataSeries(final List<Point> symbol, final Timespan timespan);
34
35    Point getTopDataSeries(final Point point, final int maxValues);
36
37    Value getCurrentValue(final long pointOwnerId, final PointName pointName) throws NimbitsException;
38
39    Value getCurrentValue(final Point p) throws NimbitsException;
40
41    double solveEquation(final Point point) throws CalculationFailedException, NimbitsException;
42
43    List<Value> getPieceOfDataSegment(final Point point, final Timespan timespan, final int start, final int end);
44
45    Value getCurrentValue(final User u, final Point p) throws NimbitsException;
46
47    Value recordValue(final UserContext context, final User u, final Point target, final Value value) throws NimbitsException;
48
49    //rpc
50    Value recordValue(final User u, final PointName pointName, final Value value) throws NimbitsException;
51
52    Value recordValue(final Point point, final Value value) throws NimbitsException;
53
54    Value getPrevValue(final User u, final Point p, final Date date);
55
56    Date getLastRecordedDate(final List<Point> points);
57
58    List<Value> getTopDataSeries(final Point point, final int maxValues, final Date endDate);
59
60}