public class QueryImpl extends Object implements Query, QueryListener
Constructor and Description |
---|
QueryImpl(SessionImpl session,
QueryListener listener) |
Modifier and Type | Method and Description |
---|---|
void |
changeParameters(QueryParameters parameters)
Request a change of parameters
|
void |
close()
Close the query
|
void |
dispose() |
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 QueryImpl(SessionImpl session, QueryListener listener)
public void setQuery(Query query)
public void close()
Query
public void dispose()
public void changeParameters(QueryParameters parameters)
Query
changeParameters
in interface Query
parameters
- the new requested parameterspublic 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 void updateState(QueryState state)
QueryListener
updateState
in interface QueryListener
state
- the new stateCopyright © 2016 Eclipse NeoSCADA Project. All rights reserved.