public AttributeWriteHandlerItem ( final String itemId, final AttributeWriteHandler writeHandler, final Executor executor ) { super ( new DataItemInformationBase ( itemId ), executor ); this.writeHandler = writeHandler; }
public DataItemOutputChained ( final String id, final Executor executor ) { this ( new DataItemInformationBase ( id, EnumSet.of ( IODirection.OUTPUT ) ), executor ); }
public DataItemOutput ( final String id ) { super ( new DataItemInformationBase ( id, EnumSet.of ( IODirection.OUTPUT ) ) ); }
public DataItemInput ( final String name ) { this ( new DataItemInformationBase ( name, EnumSet.of ( IODirection.INPUT ) ) ); }
public DataItemInputOutputChained ( final String id, final Executor executor ) { this ( new DataItemInformationBase ( id, EnumSet.of ( IODirection.INPUT, IODirection.OUTPUT ) ), executor ); }
public MemoryItemChained ( final String id ) { this ( new DataItemInformationBase ( id, EnumSet.of ( IODirection.INPUT, IODirection.OUTPUT ) ) ); }
public DataItemInputChained ( final String id, final Executor executor ) { this ( new DataItemInformationBase ( id, EnumSet.of ( IODirection.INPUT ) ), true, executor ); }
protected MemoryDataItem ( final String name, final EnumSet<IODirection> ioDirection ) { super ( new DataItemInformationBase ( name, ioDirection ) ); this.attributes = new AttributeManager ( this ); }
protected WriteHandlerItem constructWriteHandler ( final String localId, final WriteHandler writeHandler ) { final WriteHandlerItem item = new WriteHandlerItem ( new DataItemInformationBase ( generateId ( localId ), EnumSet.of ( IODirection.OUTPUT ) ), writeHandler, this.executor ); registerItem ( item ); return item; }
@Override public WriteHandlerItem createOutput ( final String localId, final Map<String, Variant> properties, final WriteHandler writeHandler ) { return registerItem ( new WriteHandlerItem ( new DataItemInformationBase ( getId ( localId ), EnumSet.of ( IODirection.OUTPUT ) ), writeHandler, this.executor ), properties ); }
@Override public WriteHandlerItem createOutput ( final String localId, final Map<String, Variant> properties, final WriteHandler writeHandler ) { return registerItem ( new WriteHandlerItem ( new DataItemInformationBase ( getId ( localId ), EnumSet.of ( IODirection.OUTPUT ) ), writeHandler, this.executor ), properties ); }
public DataItemInputChained createInput ( final String localId, final Map<String, Variant> attributes ) { final DataItemInputChained item = new DataItemInputChained ( new DataItemInformationBase ( makeId ( localId ), EnumSet.of ( IODirection.INPUT ) ), this.hive.getOperationService () ); final org.eclipse.scada.da.server.browser.common.query.ItemDescriptor desc = new org.eclipse.scada.da.server.browser.common.query.ItemDescriptor ( item, attributes ); this.hive.registerItem ( item ); this.storage.added ( desc ); this.items.put ( localId, desc ); return item; }
public SNMPItem ( final SNMPNode node, final String id, final OID oid ) { super ( new DataItemInformationBase ( id, EnumSet.of ( IODirection.INPUT, IODirection.OUTPUT ) ), DirectExecutor.INSTANCE ); this.node = node; this.oid = oid; updateData ( Variant.NULL, new MapBuilder<String, Variant> ().put ( ATTR_NO_INITIAL_DATA_ERROR, Variant.TRUE ).getMap (), AttributeMode.SET ); }
item = new OPCItem ( this.hive, this.controller, new DataItemInformationBase ( createItemId ( opcItemId ), ioDirection ), opcItemId );
@Override public void browseComplete ( final BrowseResult result ) { final Map<String, Folder> folders = new HashMap<String, Folder> (); final Map<String, DataItemInformation> items = new HashMap<String, DataItemInformation> (); for ( final String branch : result.getBranches () ) { final Collection<String> path = new ArrayList<String> ( this.path ); path.add ( branch ); folders.put ( branch, new OPCTreeFolder ( this.controller, path ) ); } for ( final BrowseResultEntry entry : result.getLeaves () ) { // create the openscada item id from the opc item id final String itemId = this.controller.getItemManager ().createItemId ( entry.getItemId () ); final DataItemInformation itemInformation = new DataItemInformationBase ( itemId, entry.getIoDirections () ); items.put ( entry.getEntryName (), itemInformation ); } // bulk add entries this.folderImpl.add ( folders, items ); }