예제 #1
0
  /** do the build operatoin */
  void doBuild() {
    if ((_templateFile == null) || (_controlFile == null)) {
      MWC.Utilities.Errors.Trace.trace("Control or template file not set");
      return;
    }

    _myScenario.createRedForce(_templateFile, _controlFile);
  }
예제 #2
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));
  }