Package eas.startSetup

Examples of eas.startSetup.ParCollection


     */
    @Override
    public void lostOwnership(
            final Clipboard clipboard,
            final Transferable contents) {
        ParCollection pars = GlobalVariables.getPrematureParameters();
        StaticMethods.log(1, "Zwischenablage veraendert.", pars);
    }
View Full Code Here


                           final String zusatzPar,
                           final Object zusatz) {
        int logParStufe;
        AbstractMsg msg = null;
       
        ParCollection parameters = params;
       
        if (parameters == null) {
            parameters = GlobalVariables.getPrematureParameters();
        }
       
        if (parameters != null && parameters.getLogOutputLevel() != null) {
            logParStufe = parameters.getLogOutputLevel().intValue();
        } else {
            logParStufe = 0;
        }
       
        // Ausgabe des Loggings.
        if (stufe >= logParStufe) {
            if (!zusatzPar.toLowerCase().equals("plain")) {
                System.out.println();
                System.out.print(new Date() + " - ");
               
                if (stufe == StaticMethods.LOG_STAGE1) {
                    System.out.print("STAGE1: ");
                } else if (stufe == LOG_OUTPUT) {
                    System.out.print("OUTPUT: ");
                } else if (stufe == LOG_DEBUG) {
                    System.out.print("DEBUG : ");
                } else if (stufe == LOG_INFO) {
                    System.out.print("INFO  : ");
                } else if (stufe == LOG_WARNING) {
                    System.out.print("WARN  : ");
                } else if (stufe == LOG_ERROR) {
                    System.out.print("ERROR : ");
                } else {
                    System.out.print("[N.A.]: ");
                }
            }

            System.out.print(s);
        }

        // Speichern des Loggings.
        if (stufe == LOG_OUTPUT) {
            msg = new MsgOutput(s, System.currentTimeMillis(), zusatz);
        } else if (stufe == LOG_DEBUG) {
            msg = new MsgDebug(s, System.currentTimeMillis(), zusatz);
        } else if (stufe == LOG_INFO) {
            msg = new MsgInfo(s, System.currentTimeMillis(), zusatz);
        } else if (stufe == LOG_WARNING) {
            msg = new MsgWarning(s, System.currentTimeMillis(), zusatz);
        } else if (stufe == LOG_ERROR) {
            msg = new MsgError(s, System.currentTimeMillis(), zusatz);
        } else if (stufe == LOG_STAGE1) {
            msg = new MsgStage1(s, System.currentTimeMillis(), zusatz);
        }
       
        parameters.addMsg(msg);
    }
View Full Code Here

        String[] args = {"log 4"};
       
        if (conds == null
                || endAuts.length != conds.length
                || endAuts.length == 0) {
            ParCollection parColl = GlobalVariables.getPrematureParameters();
            parColl.overwriteParameterList(args);
            StaticMethods.log(StaticMethods.LOG_ERROR,
                          "Gesamtautomat konnte nicht erzeugt werden.",
                          parColl);
        }
       
View Full Code Here

  }
 
  @Override
  public List<SingleParameter> getParameters() {
      List<SingleParameter> list = super.getParameters();
      ParCollection params = GlobalVariables.getPrematureParameters();
     
      list.addAll(new DomPhysAgent(0, null, "", 0.0f, params, 0).getParameters());
      list.addAll(new DomPhysNeuroBrain(null, 0, null, params).getParameters());
     
     
View Full Code Here

     */
    private static final long serialVersionUID = -4784353169436920721L;

    public static void main(String[] args) {
        fmg.fmg8.statistik.Aufnahme a = null;
        ParCollection params = GlobalVariables.getPrematureParameters();
        params.overwriteParameterList(args);
        int times = 20;
        LinkedList<Integer> tempList = null;
        LinkedList<String> lauf;
       
        MeasureTranslatorGenerality m = new MeasureTranslatorGenerality(1000,
View Full Code Here

    public static void main(final String[] args) {
        String seq = "";
        String[] argsNeu = new String[2];
        argsNeu[0] = "log";
        argsNeu[1] = "0";
        ParCollection params = GlobalVariables.getPrematureParameters();
        params.overwriteParameterList(argsNeu);
       
        for (String arg : args) {
            seq += arg;
        }
       
View Full Code Here

     */
    private static final long serialVersionUID = -5933102787525965260L;

    public static void main(String[] args) {
        fmg.fmg8.statistik.Aufnahme a = null;
        ParCollection params = GlobalVariables.getPrematureParameters();
        params.overwriteParameterList(args);
        int times = 20;
        LinkedList<Integer> tempList = null;
        LinkedList<String> lauf;
        lauf = new LinkedList<String>();

View Full Code Here

     *                        determined automatically which is time and space
     *                        expensive.
     */
    @SuppressWarnings("unused")
    private static void extractAllStatisticsFilesIn(File path, HashSet<String> changingParams) {
        ParCollection params = GlobalVariables.getPrematureParameters();
        params.complete();
        params.setLoggingLevel(-1);
        String endungGZ = "gz";
        String endung = "xml";
        String[] gespGrGZ = path.list(new FileNamePostfixFilter(endungGZ));
        String[] gespGr;
        String[] gespGrFIT;
       
        if (gespGrGZ == null) {
            StaticMethods.log(
                    StaticMethods.LOG_ERROR,
                    "Ungueltiges Verzeichnis: " + path.getAbsolutePath(),
                    params);
            throw new RuntimeException("Ungültiges Verzeichnis.\n" + path.getAbsolutePath());
        }
       
        // Entpacke Dateien.
        for (String s : gespGrGZ) {
            if (!new File(path.getAbsolutePath() + File.separator + StaticMethods.datNamOhneHintErw(s)).exists()) {
                StaticMethods.logInfo("Entpacken " + s + ".", params);
                StaticMethods.entpackeDatei(
                        path.getAbsolutePath() + File.separator + s,
                        path.getAbsolutePath() + File.separator + StaticMethods.datNamOhneHintErw(s),
                        false);
            } else {
                params.logInfo("Datei existiert bereits: " + StaticMethods.datNamOhneHintErw(s));
            }
        }
       
        gespGr = path.list(new FileNamePostfixFilter(endung));
       
        // Find all changing parameters.
       
        HashSet<String> differingPars;
        if (changingParams != null) {
            differingPars = changingParams;
        } else {
            differingPars = new HashSet<String>();
            ArrayList<SingleParameter> allPars0 = null;
            for (String s : gespGr) {
                if (new File(path + "\\" + s + "-fitness.txt").exists()) {
                    params.logInfo("Datei existiert bereits: " + s + "-fitness.txt");
                } else {
                    XMLAufnLesen read = new XMLAufnLesen(new File(path + "\\" + s), params);
                    params.logInfo("Datei gelesen: " + s);
                   
                    if (allPars0 == null) {
                        allPars0 = read.getParams().getAllPars();
                    }
                   
                    ParCollection parColl = read.getParams();
                   
                    ArrayList<SingleParameter> allParsI = parColl.getAllPars();
                    for (SingleParameter par0 : allPars0) {
                        for (SingleParameter parI : allParsI) {
                            if (par0.getParameterName().equals(parI.getParameterName())) {
                                if (!par0.getParValue().equals(parI.getParValue())) {
                                    differingPars.add(par0.getParameterName());
View Full Code Here

     *              ist, wird der erste als Verzeichnis interpretiert und von
     *              allen Statistiken in diesem Verzeichnis die Fitness
     *              extrahiert.
     */
    public static void main(final String[] args) {
        ParCollection paramsAkt = GlobalVariables.getPrematureParameters();
        paramsAkt.overwriteParameterList(args);
        XMLAufnLesen aufn = null;
       
        // Extrahiere alle Fitnesswerte.
        if (args.length > 1
            && args[1].toLowerCase().equals("allefitnesswerte")) {
View Full Code Here

    @Override
    public Polygon2D getAgentShape() {
        if (pol == null) {
            Polygon p;
            Polygon2D p2;
            ParCollection params = this.getPars();
           
            p = new ArrowMaster(params).pfeilEinfach(5, 5, -5, -5, 0.25, false);
            p2 = new Polygon2D();
            for (int i = 0; i < p.npoints; i++) {
                p2.add(new Vector2D(p.xpoints[i], p.ypoints[i]));
View Full Code Here

TOP

Related Classes of eas.startSetup.ParCollection

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.