Free cookie consent management tool by TermsFeed Policy Generator

source: branches/OKBJavaConnector/ECJClient/src/ec/util/Version.java @ 10501

Last change on this file since 10501 was 6152, checked in by bfarka, 14 years ago

added ecj and custom statistics to communicate with the okb services #1441

File size: 2.7 KB
Line 
1/*
2  Copyright 2006 by Sean Luke and George Mason University
3  Licensed under the Academic Free License version 3.0
4  See the file "LICENSE" for more information
5*/
6
7
8package ec.util;
9import java.util.*;
10
11/*
12 * Version.java
13 *
14 * Created: Wed Aug 11 19:44:46 1999
15 * By: Sean Luke
16 */
17
18/**
19 * Version is a static class which stores version information for this
20 * evolutionary computation system.
21 *
22 * @author Sean Luke
23 * @version 1.0
24 */
25
26public class Version
27    {
28    public static final String name = "ECJ";
29    public static final String version = "20";
30    public static final String copyright = "2010";
31    public static final String author = "Sean Luke";
32    public static final String contributors = "L. Panait, G. Balan, S. Paus, Z. Skolicki, R. Kicinger, E. Popovici,";
33    public static final String contributors2 = "K. Sullivan, J. Harrison, J. Bassett, R. Hubley, A. Desai, A. Chircop,";
34    public static final String contributors3 = "J. Compton, W. Haddon, S. Donnelly, B. Jamil, J. Zelibor, E. Kangas,";
35    public static final String contributors4 = "F. Abidi, H. Mooers, and J. O'Beirne";
36    public static final String authorEmail0 = "ecj-help";
37    public static final String authorEmail1 = "cs.gmu.edu";
38    public static final String authorEmail2 = "(better: join ECJ-INTEREST at URL above)";
39    public static final String authorURL = "http://cs.gmu.edu/~eclab/projects/ecj/";
40    public static final String date = "December 15, 2010";
41    public static final String minimumJavaVersion = "1.4";
42
43    public static final String message()
44        {
45        Properties p = System.getProperties();
46        String javaVersion = p.getProperty("java.version");
47        String javaVM = p.getProperty("java.vm.name");
48        String javaVMVersion = p.getProperty("java.vm.version");
49        if (javaVM!=null) javaVersion = javaVersion + " / " + javaVM;
50        if (javaVM!=null && javaVMVersion!=null) javaVersion = javaVersion + "-" + javaVMVersion;
51       
52   
53        return
54            "\n| " + name +
55            "\n| An evolutionary computation system (version " + version + ")" +
56            //"\n| Copyright " + copyright + */ " By " + author +
57            "\n| By " + author +
58            "\n| Contributors: " + contributors +
59            "\n|               " + contributors2 +
60            "\n|               " + contributors3 +
61            "\n|               " + contributors4 +
62            "\n| URL: " + authorURL +
63            "\n| Mail: " + authorEmail0 + "@" + authorEmail1 +
64            "\n|       " + authorEmail2 +
65            "\n| Date: " + date +
66            "\n| Current Java: " + javaVersion +
67            "\n| Required Minimum Java: " + minimumJavaVersion +
68            "\n\n";
69        }
70    }
Note: See TracBrowser for help on using the repository browser.