@Override public synchronized DataItemCommand createCommand ( final String localId, final Map<String, Variant> properties ) { return registerItem ( new DataItemCommand ( getId ( localId ), this.executor ), properties ); }
@Override public WriteResult call () throws Exception { processWrite ( value ); return null; } } );
@Override public void register ( final Hive hive, final FolderCommon parentFolder ) { super.register ( hive, parentFolder ); this.startItem = getItemFactory ().createCommand ( "start", null ); this.startItem.addListener ( this ); this.killItem = getItemFactory ().createCommand ( "kill", null ); this.killItem.addListener ( new Listener () { @Override public void command ( final Variant value ) throws Exception { TriggerCommand.this.kill (); } } ); }
@Override public void register ( final Hive hive, final FolderCommon parentFolder ) { super.register ( hive, parentFolder ); this.startItem = getItemFactory ().createCommand ( "start", null ); this.startItem.addListener ( this ); this.killItem = getItemFactory ().createCommand ( "kill", null ); this.killItem.addListener ( new Listener () { @Override public void command ( final Variant value ) throws Exception { TriggerCommand.this.kill (); } } ); }
this.killItem.addListener ( new DataItemCommand.Listener () {
protected DataItemCommand constructCommand ( final String localId ) { final DataItemCommand commandItem = new DataItemCommand ( generateId ( localId ), this.executor ); registerItem ( commandItem ); return commandItem; }
this.killItem.addListener ( new DataItemCommand.Listener () {
@Override public synchronized DataItemCommand createCommand ( final String localId, final Map<String, Variant> properties ) { return registerItem ( new DataItemCommand ( getId ( localId ), this.executor ), properties ); }
item.addListener ( new DataItemCommand.Listener () {
@Override public synchronized DataItemCommand createCommand ( final String localId, final Map<String, Variant> properties ) { final DataItem item = this.items.get ( localId ); if ( item == null ) { final DataItemCommand newItem = new DataItemCommand ( getId ( localId ), this.executor ); registerItem ( item, localId, fixProperties ( properties ) ); return newItem; } else if ( item instanceof DataItemCommand ) { return (DataItemCommand)item; } return null; }
this.connectDataItem.addListener ( new DataItemCommand.Listener () { this.disconnectDataItem.addListener ( new DataItemCommand.Listener () { this.suicideCommandDataItem.addListener ( new DataItemCommand.Listener () {
@Override public synchronized DataItemCommand createCommand ( final String localId, final Map<String, Variant> properties ) { final DataItem item = this.items.get ( localId ); if ( item == null ) { final DataItemCommand newItem = new DataItemCommand ( getId ( localId ), this.executor ); registerItem ( item, localId, fixProperties ( properties ) ); return newItem; } else if ( item instanceof DataItemCommand ) { return (DataItemCommand)item; } return null; }
this.itemRewalkCount = this.dataItemFactory.createInput ( "rewalkCount", null ); this.itemRewalkCommand = this.dataItemFactory.createCommand ( "rewalk", null ); this.itemRewalkCommand.addListener ( new DataItemCommand.Listener () {