Examples of InteractionUnit


Examples of org.useware.kernel.model.structure.InteractionUnit

        @Override
        public void add(ReificationWidget widget) {

            //System.out.println("Add "+ widget.getInteractionUnit() + " to " + unit);
            InteractionUnit unit = widget.getInteractionUnit();
            DMRMapping mapping = (DMRMapping) unit.findMapping(MappingType.DMR);

            if(unit.doesProduce())
            {
                Iterator<Resource<ResourceType>> iterator = unit.getOutputs().iterator();
                Resource<ResourceType> resource =  iterator.next();

                String resourceAddress = mapping.getAddress();
                String operationName = resource.getId().getSuffix();
View Full Code Here

Examples of org.useware.kernel.model.structure.InteractionUnit

        ElementAdapter adapter = getAdapter(root.getNodeName());

        if(InteractionUnit.class == adapter.getType())
        {
            // interaction unit contents
            InteractionUnit unit = (InteractionUnit)adapter.fromXML(root);

            if(unit instanceof Container)
                builder.start((Container)unit);
            else
                builder.add(unit);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.