Beispiel #1
0
  /** Sets the value of the modStamp property. */
  public void setModStamp(int offset, String value) throws MOException {

    // ModStamp -- if no modStampArray list has been created, add one
    if (modStampArray == null) {
      setModStampArray();
    }
    try {
      // add ratio to array at offset
      modStampArray.add(offset, value);
      // Create content string based on ratioArray list, by removing "[", "]" characters and
      // spaces between commas.
      String modStampContent = modStampArray.toString().replaceAll("(\\[|\\]|,\\s,)", "");
      super.setModStamps(modStampContent);
    } catch (Exception ex) {
      throw new MOException(
          ex,
          "Error adding new split ratio modStamp "
              + value
              + " at offset "
              + offset
              + ". Must add ratio's in order.");
    }
  }
Beispiel #2
0
  /** Sets the value of the id property. */
  public void setId(int offset, Long value) throws MOException {

    // idArray -- if no idArray list has been created, create one
    if (idArray == null) {
      setIdArray();
    }
    try {
      // add ratio to array at offset
      idArray.add(offset, value);
      // Create content string based on ratioArray list, by removing "[", "]" characters and
      // spaces between commas.
      String idContent = idArray.toString().replaceAll("(\\[|\\]|\\s)", "");
      super.setIds(idContent);
    } catch (Exception ex) {
      throw new MOException(
          ex,
          "Error adding new split ratio id "
              + value
              + " at offset "
              + offset
              + ". Must add ratio's in order.");
    }
  }
Beispiel #3
0
 /** @param id the vehicle type id for this ratio */
 @Override
 public void setVehicleTypeId(long id) {
   super.setVehicleTypeId(id);
 }
Beispiel #4
0
 /** @param linkOut set the split ratio's link out */
 @Override
 public void setLinkOut(long linkOut) {
   super.setLinkOut(linkOut);
 }
Beispiel #5
0
 /** @param linkIn set the split ratio's link in */
 @Override
 public void setLinkIn(long linkIn) {
   super.setLinkIn(linkIn);
 }