private void setReservoirFieldNames() {
   ReservoirFieldNames names = new ReservoirFieldNames();
   names.setTotalHead("altura");
   names.setPressure(null);
   names.setHead("altura_total");
   names.setDemand("caudal");
   Preferences.setReservoirFieldNames(names);
 }
 private void setSourceFieldNames() {
   JunctionFieldNames names = new JunctionFieldNames();
   names.setElevation("altura");
   names.setBaseDemand("q_calculo"); //
   names.setPressure("presion");
   names.setHead("altura_total");
   names.setDemand(null);
   Preferences.setSourceFieldNames(names);
 }
 private void setPipeFieldNames() {
   PipeFieldNames names = new PipeFieldNames();
   names.setDiameter("diametro");
   names.setRoughness("rugosidad");
   names.setFlow("caudal");
   names.setVelocity("velocidad");
   names.setUnitHeadLoss("perdida_carga");
   names.setFrictionFactor("factor_friccion");
   Preferences.setPipeFieldNames(names);
 }
 private void setPumpFieldNames() {
   PumpFieldNames names = new PumpFieldNames();
   names.setElevation("cota");
   names.setValue("potencia");
   names.setFlow("caudal");
   names.setVelocity(null);
   names.setUnitHeadLoss("altura");
   names.setFrictionFactor(null);
   Preferences.setPumpFieldNames(names);
 }
 private void setValveFieldNames() {
   ValveFieldNames names = new ValveFieldNames();
   names.setElevation("cota");
   names.setDiameter("diametro");
   names.setSetting("consigna");
   names.setFlow("caudal");
   names.setVelocity("velocidad");
   names.setUnitHeadLoss("perdidas");
   names.setFrictionFactor(null);
   Preferences.setValveFieldNames(names);
 }
 private void setLayerNames() {
   LayerNames layerNames = new LayerNames();
   layerNames.setJunctions("alt_conexiones");
   layerNames.setPipes("alt_tuberias");
   layerNames.setPumps("alt_bombeos");
   layerNames.setReservoirs("alt_embalses");
   layerNames.setSources("alt_fuentes");
   layerNames.setTanks("alt_depositos");
   layerNames.setValves("alt_valvulas");
   Preferences.setLayerNames(layerNames);
 }
 private void setTankFieldNames() {
   TankFieldNames names = new TankFieldNames();
   names.setElevation("cota");
   names.setInitLevel("nivel_inicial");
   names.setMinLevel("nivel_minimo");
   names.setMaxLevel("nivel_maximo");
   names.setDiameter("diametro");
   names.setPressure("presion");
   names.setHead("altura_total");
   names.setDemand("q_neto_entrante");
   Preferences.setTankFieldNames(names);
 }
  public PipeCADToolContext(PipeCADTool owner) {
    super();

    pointLayers = Preferences.getPointLayers();

    try {
      geometries = new ArrayList<IGeometry>();
      IFeatureIterator iterator;
      for (FLyrVect layer : pointLayers) {
        iterator = layer.getSource().getFeatureIterator();
        while (iterator.hasNext()) {
          geometries.add(iterator.next().getGeometry());
        }
      }
    } catch (Exception e) {
      e.printStackTrace();
    }

    _owner = owner;
    setState(Polyline.FirstPoint);
    Polyline.FirstPoint.Entry(this);
  }
 private void setNodesCheckers() {
   Map<String, NodesChecker> nodesCheckers = Preferences.getNodesCheckers();
   nodesCheckers.put(DemandVsOffert.class.getName(), new DemandVsOffert());
 }
Esempio n. 10
0
 private void setFonsaguaEndGeometryListener() {
   Preferences.setCADListener(new FonsaguaEndGeometryListener());
 }