Package gov.nasa.arc.mct.evaluator.api

Examples of gov.nasa.arc.mct.evaluator.api.Evaluator


      }

      // execute multiple evaluators to ensure their values are
      // updated also
      for (AbstractComponent multi : multipleEvaluators) {
        Evaluator evaluator = multi.getCapability(Evaluator.class);
        FeedProvider.RenderingInfo info = evaluator.evaluate(data,
            getFeedProviders(multi));
        if (info != null && info.getValueText() != null) {
          TableCellSettings settings = model.getCellSettings(model
              .getKey(multi));
          DisplayedValue displayedValue = new DisplayedValue();
View Full Code Here


    if (id.equals(component.getId())) {
      return component;
    }

    AbstractComponent parent = AbstractComponent.getComponentById(id);
    Evaluator e = parent == null ? null : parent.getCapability(Evaluator.class);
    if (e != null && !e.requiresMultipleInputs()
        && parent.getId().equals(id)) {

      return parent;
    }
View Full Code Here

      AbstractComponent referencedComponent = component;
     
      for (AbstractComponent parent : referencedComponent.getReferencingComponents()) {
        // For now, we only find evaluators that have exactly one child (the current component).
        Evaluator e = parent.getCapability(Evaluator.class);
        if (e != null && !e.requiresMultipleInputs()) {
          // Found an evaluator for the component.
          EnumerationItem item = new EnumerationItem(parent);
          enumerationModel.addElement(item);
          if (evaluator!=null && evaluator.getId().equals(parent.getId())) {
            selectedItem = item;
View Full Code Here

        enumerationModel.addElement(item);
      }
 
      for (AbstractComponent parent : referencedComponent.getReferencingComponents()) {
        // For now, we only find evaluators that have exactly one child (the current component).
        Evaluator e = parent.getCapability(Evaluator.class);
        if (e != null && !e.requiresMultipleInputs()) {
          // Found an enumeration for the component.
            commonEnums.add(new EnumerationItem(parent));
        }
      }
 
View Full Code Here

   * @param component the component for which to determine the key
   * @return a unique key for the component
   */
  public String getKey(AbstractComponent component) {
    AbstractComponent delegate = component;
    Evaluator e = component.getCapability(Evaluator.class);
    if (e != null && component.getComponents().size() > 1) {
      return component.getComponentId();
    }
    FeedProvider fp = component.getCapability(FeedProvider.class);
    if (fp != null) {
View Full Code Here

TOP

Related Classes of gov.nasa.arc.mct.evaluator.api.Evaluator

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.