public static class QueryImpl.QueryEntry extends Object implements QueryListener, QueryDataHolder, Comparable<QueryImpl.QueryEntry>
Constructor and Description |
---|
QueryEntry(QueryImpl impl,
int priority) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(QueryImpl.QueryEntry o) |
QueryParameters |
getParameters() |
Query |
getQuery() |
QueryState |
getState() |
List<ValueInformation> |
getValueInformation() |
HashMap<String,List<Double>> |
getValues() |
void |
setQuery(Query query) |
void |
updateData(int index,
Map<String,List<Double>> values,
List<ValueInformation> valueInformation)
Reports data update
|
void |
updateParameters(QueryParameters parameters,
Set<String> valueTypes)
Reports a change in parameters
|
void |
updateState(QueryState state)
Updates the state of the query
|
public QueryEntry(QueryImpl impl, int priority)
public void setQuery(Query query)
public Query getQuery()
public QueryParameters getParameters()
getParameters
in interface QueryDataHolder
public QueryState getState()
getState
in interface QueryDataHolder
public List<ValueInformation> getValueInformation()
getValueInformation
in interface QueryDataHolder
public HashMap<String,List<Double>> getValues()
getValues
in interface QueryDataHolder
public void updateState(QueryState state)
QueryListener
updateState
in interface QueryListener
state
- the new statepublic void updateParameters(QueryParameters parameters, Set<String> valueTypes)
QueryListener
updateParameters
in interface QueryListener
parameters
- the new parameters, must not be null
valueTypes
- the new value types to expect, must not be null
or emptypublic void updateData(int index, Map<String,List<Double>> values, List<ValueInformation> valueInformation)
QueryListener
All arrays must have the same size.
updateData
in interface QueryListener
index
- index from which the data update starts, must be greater or
equal to zero
and lower than the reported number of entriesvalues
- the values that are updates, must not be null
valueInformation
- the value information for the provided values. must not be
null
public int compareTo(QueryImpl.QueryEntry o)
compareTo
in interface Comparable<QueryImpl.QueryEntry>
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.