Examples of UnitType


Examples of com.volantis.shared.metadata.type.UnitType

                getTypeFactory();

        NumberType numberType = factory.createNumberType();
        mutableQuantityType.setMagnitudeType( numberType );

        UnitType unitType = factory.createUnitType();
        mutableQuantityType.setUnitType(unitType);

        return mutableQuantityType;
    }
View Full Code Here

Examples of mate00.parafia.net.UnitType

    mWorkerConfig.setCashToWithdraw(num);
}//GEN-LAST:event_inputIfLessThanFocusLost

private void unitsDropListFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_unitsDropListFocusLost
    String typeName = (String)this.unitsDropList.getSelectedItem();
    UnitType uType = getUnitByName(typeName);
    mWorkerConfig.setUnitType(uType);
}//GEN-LAST:event_unitsDropListFocusLost
View Full Code Here

Examples of org.apache.flex.compiler.units.ICompilationUnit.UnitType

        {
            for (ICompilationUnit unit : sourcePathUnits)
            {
                // We only care about filtering units on the source path
                // that follow the single definition rule.
                UnitType unitType = unit.getCompilationUnitType();
                if (unitType == UnitType.AS_UNIT || unitType == UnitType.FXG_UNIT ||
                    unitType == UnitType.MXML_UNIT || unitType == UnitType.CSS_UNIT)
                {
                    Collection<String> qnames = unit.getQualifiedNames();
                    if (qnames.size() > 1)
View Full Code Here

Examples of org.apache.flex.compiler.units.ICompilationUnit.UnitType

        try
        {
            ImmutableList<ICompilationUnit> units = target.getReachableCompilationUnits(problemList);
            for (ICompilationUnit unit : units)
            {
                UnitType ut = unit.getCompilationUnitType();
                if (ut == UnitType.AS_UNIT || ut == UnitType.MXML_UNIT)
                {
                    list.add(unit.getAbsoluteFilename());
                }
            }
View Full Code Here

Examples of org.apache.flex.compiler.units.ICompilationUnit.UnitType

        {
            for (ICompilationUnit unit : sourcePathUnits)
            {
                // We only care about filtering units on the source path
                // that follow the single definition rule.
                UnitType unitType = unit.getCompilationUnitType();
                if (unitType == UnitType.AS_UNIT || unitType == UnitType.FXG_UNIT ||
                    unitType == UnitType.MXML_UNIT || unitType == UnitType.CSS_UNIT)
                {
                    Collection<String> qnames = unit.getQualifiedNames();
                    if (qnames.size() > 1)
View Full Code Here

Examples of org.eurekaj.api.enumtypes.UnitType

        }
    return statList;
  }

    private UnitType getUnitType(String param) {
        UnitType unitType = UnitType.N;

        if (param.equalsIgnoreCase("n")) {
            unitType = UnitType.N;
        } else if (param.equalsIgnoreCase("ns")) {
            unitType = UnitType.NS;
View Full Code Here

Examples of org.eurekaj.api.enumtypes.UnitType

      String value = params[2];
     
      String timestampStr = "";
      String count = "1";
     
      UnitType unitType = UnitType.N;
            ValueType valueType = ValueType.VALUE;
           
      if (params.length == 4) {
        timestampStr = params[3];
      } else {
        unitType = getUnitType(params[3]);
              valueType = getValueType(params[4]);
              count = params[5];
              timestampStr = params[6];
      }
   
      Long timeperiod = 0l;
      try {
        timeperiod = Long.parseLong(timestampStr);
        timeperiod = ((long)(timeperiod / 15000));
      } catch (NumberFormatException nfe) {
        log.error("Unable to read in timestamp");
      }
     
      StringBuilder sb = new StringBuilder();
      sb.append(agentName)
        .append(":")
        .append(path);
     
      StoreIncomingStatisticsElement statElem = new StoreIncomingStatisticsElement();
      statElem.setGuiPath(sb.toString());
      statElem.setTimeperiod(timeperiod);
      statElem.setValue(value);
            statElem.setValueType(valueType.value());
            statElem.setUnitType((unitType.value()));
            statElem.setCount(count);
      statList.add(statElem);
    }
    return statList;
  }
View Full Code Here

Examples of org.freerealm.unit.UnitType

    public String toXML() {
        StringBuffer xml = new StringBuffer();
        xml.append("<UnitTypes>\n");
        for (Iterator<UnitType> iterator = unitTypeManager.getUnitTypesIterator(); iterator.hasNext();) {
            UnitType unitType = iterator.next();
            xml.append((new UnitTypeXMLConverter()).toXML(unitType) + "\n");
        }
        xml.append("</UnitTypes>");
        return xml.toString();
    }
View Full Code Here

Examples of org.freerealm.unit.UnitType

    }

    public void initializeFromNode(Realm realm, Node node) {
        for (Node unitTypeNode = node.getFirstChild(); unitTypeNode != null; unitTypeNode = unitTypeNode.getNextSibling()) {
            if (unitTypeNode.getNodeType() == Node.ELEMENT_NODE) {
                UnitType unitType = new UnitTypeXMLConverter().initializeFromNode(realm, unitTypeNode);
                unitTypeManager.getUnitTypes().put(unitType.getId(), unitType);
            }
        }
    }
View Full Code Here

Examples of org.freerealm.unit.UnitType

        xml.append("</UnitType>");
        return xml.toString();
    }

    public UnitType initializeFromNode(Realm realm, Node node) {
        UnitType unitType = new UnitType();
        int idValue = Integer.parseInt(node.getAttributes().getNamedItem("id").getNodeValue());
        String nameValue = node.getAttributes().getNamedItem("name").getNodeValue();
        int explorationRadius = Integer.parseInt(node.getAttributes().getNamedItem("explorationRadius").getNodeValue());
        int weightForContainerValue = Integer.parseInt(node.getAttributes().getNamedItem("weightForContainer").getNodeValue());
        unitType.setId(idValue);
        unitType.setName(nameValue);
        unitType.setExplorationRadius(explorationRadius);
        unitType.setWeightForContainer(weightForContainerValue);
        for (Node subNode = node.getFirstChild(); subNode != null; subNode = subNode.getNextSibling()) {
            if (subNode.getNodeType() == Node.ELEMENT_NODE) {
                if (subNode.getNodeName().equals("Properties")) {
                    for (Node abilityNode = subNode.getFirstChild(); abilityNode != null; abilityNode = abilityNode.getNextSibling()) {
                        if (abilityNode.getNodeType() == Node.ELEMENT_NODE) {
                            Property ability = PropertyFactory.createProperty(realm, abilityNode);
                            unitType.addAbility(ability);
                        }
                    }
                }
            }
        }
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.