Examples of MetricGemFilter


Examples of org.openquark.samples.bam.MetricGemFilter

            //for all message properties consider which metrics are suitable
            Collection<MessagePropertyDescription> msgProperties = jobDescription.getMessagePropertyDescriptions();
            for (final MessagePropertyDescription propertyInfo : msgProperties) {
                TypeExpr propertyType = propertyInfo.getCalType(calServices);
                              
                Set<GemEntity> gemEntities = new MetricGemFilter(propertyType, inputItem.typeExpr).getMatchingGems();
                for (final GemEntity gemEntity : gemEntities) {
                    metricCombo.addItem(new MetricComboItem (new MetricDescription(gemEntity.getName(), propertyInfo )));
                                           
                }
            }
View Full Code Here

Examples of org.openquark.samples.bam.MetricGemFilter

            BasicCALServices calServices = MonitorApp.getInstance().getCalServices();
            for (final MessagePropertyDescription propertyInfo : messagePropertyDescriptions) {
                TypeExpr propertyType = propertyInfo.getCalType(calServices);
                TypeExpr printableType = calServices.getTypeFromString(MonitorApp.TARGET_MODULE, "Cal.Samples.BusinessActivityMonitor.BAM.Printable a => a");

                Set<GemEntity> gemEntities = new MetricGemFilter(propertyType, printableType ).getMatchingGems();
                for (final GemEntity gemEntity : gemEntities) {
                    MetricDescription metricDescription=new MetricDescription(gemEntity.getName(), propertyInfo );
                    model.addElement(new MetricItem (metricDescription));                       

                    argumentNameToBindingMap.put(metricDescription.getDescription(), new MetricBinding(metricDescription));                   
View Full Code Here

Examples of org.openquark.samples.bam.MetricGemFilter

    private void createTopLevelPanel () {

        JTabbedPane tabPane = new JTabbedPane();
        tabPane.addTab("Triggers", createBlessingTab( new BooleanGemFilter(), new TriggerGemFilter(), TRIGGER_BLESSING));
        tabPane.addTab("Actions", createBlessingTab( new BooleanGemFilter(), new ActionGemFilter(), ACTION_BLESSING));
        tabPane.addTab("Metrics", createBlessingTab( new ListGemFilter(), new MetricGemFilter(), METRIC_BLESSING));
             
        getContentPane().add (tabPane);
        pack ();
        addComponentListener (new SizeConstrainer (getSize ()));
    }
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.