Package org.openquark.samples.bam.model

Examples of org.openquark.samples.bam.model.InputBinding


        int zipInput=0;
        gemGraph.connectGems(zippingFunctionGem.getOutputPart(),zipGem.getInputPart(zipInput++));
       
        //connect the parameters
        for (int inputN = 0; inputN < boundGemDescription.getBindingCount(); ++inputN) {
            InputBinding binding = boundGemDescription.getNthBinding(inputN);
            Gem outputGem = binding.getOutputGem(calServices, gemGraph, bindingContext);

            if (binding.isConstant()) {
                gemGraph.connectGems(outputGem.getOutputPart(), zippingFunctionGem.getInputPart(inputN));
            } else {
                zippingFunctionGem.getInputPart(inputN).setBurnt(true);
                gemGraph.connectGems(outputGem.getOutputPart(), zipGem.getInputPart(zipInput++));
            }
View Full Code Here


     */
    private void updateBindingOfSelectedInput () {
        InputListItem inputListItem = getSelectedInputListItem ();

        if (inputListItem != null) {
            InputBinding newBinding = makeBinding (typeExprToDataType (inputListItem.typeExpr));

            // OK if it's null

            inputListItem.setInputBinding (newBinding);

View Full Code Here

     * Method makeBinding
     *
     * @return an InputBinding created from the current settings of the controls
     */
    private InputBinding makeBinding (int dataType) {
        InputBinding result = null;

        if (getPropertyRadioButton ().isSelected ()) {
            MessagePropertyDescription propertyInfo = getPropertyCombo ().getSelectedInfo();

            if (propertyInfo != null) {
View Full Code Here

        PropertyBinding propertyBinding = null;
       
        InputListItem item = getSelectedInputListItem ();
       
        if (item != null) {
            InputBinding binding = item.getInputBinding();
           
            if (binding instanceof PropertyBinding) {
                propertyBinding = (PropertyBinding)binding;
            }
        }
View Full Code Here

        MetricBinding metricBinding = null;
       
        InputListItem item = getSelectedInputListItem ();
       
        if (item != null) {
            InputBinding binding = item.getInputBinding();
           
            if (binding instanceof MetricBinding) {
                metricBinding = (MetricBinding)binding;
            }
        }
View Full Code Here

        ConstantBinding constantBinding = null;
       
        InputListItem item = getSelectedInputListItem ();
       
        if (item != null) {
            InputBinding binding = item.getInputBinding();
           
            if (binding instanceof ConstantBinding) {
                constantBinding = (ConstantBinding)binding;
            }
        }
View Full Code Here

        TemplateStringBinding templateStringBinding = null;

        if (item != null) {
            enabled = item.typeExpr.isNonParametricType(CAL_Prelude.TypeConstructors.String);
           
            InputBinding binding = item.getInputBinding();
           
            if (binding instanceof TemplateStringBinding) {
                templateStringBinding = (TemplateStringBinding)binding;
            }
        }
View Full Code Here

            Object element = inputListModel.getElementAt(i);
           
            if (element instanceof InputListItem) {
                InputListItem listItem = (InputListItem)element;
               
                InputBinding inputBinding = listItem.getInputBinding();
             
                if (inputBinding == null) {
                    return listItem;
                }
            }
View Full Code Here

        for (int argN = 0; argN < gemEntity.getNNamedArguments (); ++argN) {
            TypeExpr argType = argTypes [argN];
           
            String argName = gemEntity.getNamedArgument (argN);
           
            InputBinding inputBinding = null;
           
            if (canBindType(argType)) {
                inputBinding = findInputBinding (argName, inputListModel);
            }
           
View Full Code Here

                stringBuilder.append(formattedTemplate.substring(index, matcher.start ()));
            }
           
            String argumentNameString = matcher.group(1);
           
            InputBinding binding = findBinding (argumentNameString);

            if (binding != null) {
                newArgumentBindings.add (binding);
            } else {
                JOptionPane.showMessageDialog(this, "The argument '" + argumentNameString + "' is not recognised.", "BAM Sample", JOptionPane.WARNING_MESSAGE);
View Full Code Here

TOP

Related Classes of org.openquark.samples.bam.model.InputBinding

Copyright © 2018 www.massapicom. 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.