Exemple #1
0
  private void addMappings(FunctionGenerator fg) throws EQException {
    // add validate mapping
    fg.addValidateMappingToPV("REC1", "CUS", "REC1", "CLC", "GFR70R", "$GFCUS");
    fg.addValidateMappingToPV("REC1", "CLC", "REC1", "CLC", "GFR70R", "$GFCLC");
    fg.addValidateMappingFromPV(
        "REC1", "CLC", "GFR70R", "$GFCUS", "REC1", "CUS", MappingToolbox.TYPE_PRIMITIVE);
    fg.addValidateMappingFromPV(
        "REC1", "CLC", "GFR70R", "$GFCLC", "REC1", "CLC", MappingToolbox.TYPE_PRIMITIVE);
    fg.addValidateMappingFromPV(
        "REC1", "CLC", "GFR70R", "$GFCUN", "REC1", "CUS", MappingToolbox.TYPE_OUTPUT);

    // add update mapping
    fg.addUpdateMapping("REC1", "CUS", "LID", "GZCUS");
    fg.addUpdateMapping("REC1", "CLC", "LID", "GZCLC");
    fg.addUpdateMapping("REC1", "FNAME", "LID", "GZCUN");
    fg.addUpdateMapping("REC1", "SNAME", "LID", "GZDAS");
    fg.addUpdateMapping("REC1", "BRNM", "LID", "GZBRNM");

    // add load PV
    fg.addLoadMappingToPVLoad("REC1", "CUS", "REC1", "GFR70R", "$GFCUS");
    fg.addLoadMappingToPVLoad("REC1", "CLC", "REC1", "GFR70R", "$GFCLC");

    // add load mapping
    fg.addLoadMappingToLoad("REC1", "CUS", "REC1", "LID", "GZCUS");
    fg.addLoadMappingToLoad("REC1", "CLC", "REC1", "LID", "GZCLC");
    fg.addLoadMappingFromLoad("REC1", "LID", "GZCUS", "REC1", "CUS", MappingToolbox.TYPE_PRIMITIVE);
    fg.addLoadMappingFromLoad("REC1", "LID", "GZCLC", "REC1", "CLC", MappingToolbox.TYPE_PRIMITIVE);
    fg.addLoadMappingFromLoad(
        "REC1", "LID", "GZCUN", "REC1", "FNAME", MappingToolbox.TYPE_PRIMITIVE);
    fg.addLoadMappingFromLoad(
        "REC1", "LID", "GZDAS", "REC1", "SNAME", MappingToolbox.TYPE_PRIMITIVE);
    fg.addLoadMappingFromLoad(
        "REC1", "LID", "GZBRNM", "REC1", "BRNM", MappingToolbox.TYPE_PRIMITIVE);
  }
Exemple #2
0
  private void addMappings(FunctionGenerator fg) throws EQException {
    // Add mappings from the work fields to the Journal Header fields
    fg.addUpdateMapping("", "WORK_APP", "GY", "GYAPP");
    fg.addUpdateMapping("", "WORK_WHO", "GY", "GYWHO");
    fg.addUpdateMapping("", "WORK_SHN", "GY", "GYSHN");
    fg.addUpdateMapping("", "WORK_JREF", "GY", "GYJREF");
    fg.addUpdateMapping("", "WORK_IREF", "GY", "GYIREF");

    // Don't add update mapping;
    // fg.addUpdateMapping("", "WORK_MODE", "HCI", "MODE");
  }