Пример #1
0
  public static SoftwareIdentification getSoftwareIdentificationForSimulator(
      SimulatorIdentificationEnum simulatorEnum) {

    SoftwareIdentification softwareId = new SoftwareIdentification();
    softwareId.setSoftwareType(ApolloSoftwareTypeEnum.SIMULATOR);

    switch (simulatorEnum) {
      case FRED:
        softwareId.setSoftwareDeveloper("UPitt,PSC,CMU");
        softwareId.setSoftwareName("FRED");
        softwareId.setSoftwareVersion("2.0.1_i");
        break;
      case SEIR:
        softwareId.setSoftwareDeveloper("UPitt");
        softwareId.setSoftwareName("SEIR");
        softwareId.setSoftwareVersion("1.0");
        break;
      default:
        softwareId = null;
        System.out.println(
            "The tutorial does not support the following simulatior "
                + simulatorEnum.toString()
                + ".");
        System.exit(-1);
    }
    return softwareId;
  }
Пример #2
0
  public static SoftwareIdentification getSoftwareIdentificationForVisualizer(
      VisualizerIdentificationEnum visualizerEnum) {

    SoftwareIdentification visualizerId = new SoftwareIdentification();
    visualizerId.setSoftwareType(ApolloSoftwareTypeEnum.VISUALIZER);

    switch (visualizerEnum) {
      case GAIA:
        visualizerId.setSoftwareName("GAIA");
        visualizerId.setSoftwareVersion("1.0");
        visualizerId.setSoftwareDeveloper("PSC");
        break;
      case TIME_SERIES:
        visualizerId.setSoftwareName("Time Series Visualizer");
        visualizerId.setSoftwareVersion("1.0");
        visualizerId.setSoftwareDeveloper("UPitt");
        break;
      default:
        visualizerId = null;
        System.out.println(
            "The tutorial does not support the following visualizer "
                + visualizerEnum.toString()
                + ".");
        System.exit(-1);
    }
    return visualizerId;
  }