Esempio n. 1
0
  /** add a blue participant */
  void addBlueFile(final String val) {
    // read in this participant
    try {
      final ParticipantType newPart =
          ASSET.Util.XML.ASSETReaderWriter.importParticipant(val, new java.io.FileInputStream(val));

      if (newPart != null) {
        // update the time to match the scenario
        newPart.getStatus().setTime(_myScenario.getTime());

        // and add to the scenario
        _myScenario.addBlueParticipant(0, newPart);
      }
    } catch (java.io.FileNotFoundException fe) {
      fe.printStackTrace();
    }

    // inform the listener
    _listener.propertyChange(new PropertyChangeEvent(this, "blue", null, null));
  }
Esempio n. 2
0
  /** record the control file */
  void setControlFile(final String val) {
    _controlFile = val;

    // inform the listener
    _listener.propertyChange(new PropertyChangeEvent(this, "control", null, null));
  }
Esempio n. 3
0
  /** record the template file */
  void setTemplateFile(final String val) {
    _templateFile = val;

    // inform the listener
    _listener.propertyChange(new PropertyChangeEvent(this, "template", null, null));
  }