public class MapperMasterHandler extends AbstractMasterHandlerImpl implements ValueMapperListener
eventAttributes| Constructor and Description |
|---|
MapperMasterHandler(String id,
ObjectPoolTracker<MasterItem> poolTracker,
ObjectPoolTracker<ValueMapper> mapperPoolTracker,
int defaultPriority) |
| Modifier and Type | Method and Description |
|---|---|
void |
dataUpdate(Map<String,Object> context,
DataItemValue.Builder builder)
Called when data changed or the handler chain changed.
|
protected ValueMapper |
getMapper() |
protected void |
setMapper(ValueMapper mapper) |
void |
stateChanged() |
void |
update(UserInformation userInformation,
Map<String,String> parameters) |
addItem, createTrackers, dispose, getMasterItems, processWrite, removeItem, reprocesspublic MapperMasterHandler(String id, ObjectPoolTracker<MasterItem> poolTracker, ObjectPoolTracker<ValueMapper> mapperPoolTracker, int defaultPriority)
public void update(UserInformation userInformation, Map<String,String> parameters) throws Exception
update in class AbstractMasterHandlerImplExceptionprotected void setMapper(ValueMapper mapper)
public void dataUpdate(Map<String,Object> context, DataItemValue.Builder builder)
MasterItemHandlerThe call gets a context object provided which each handler can use to store context information of one calculation run. Each calculation run gets a fresh new context. The context is intended to pass data from one handler to the next.
Although the value parameter is a mutable type, the handler may only make changes inside the dataUpdate method.
dataUpdate in interface MasterItemHandlerdataUpdate in class AbstractMasterHandlerImplcontext - the context objectbuilder - the changed valueprotected ValueMapper getMapper()
public void stateChanged()
stateChanged in interface ValueMapperListenerCopyright © 2016 Eclipse NeoSCADA Project. All rights reserved.