package jaci.openrio.toast.core;

public class Environment {

    public static boolean isVerification() {
        return ToastBootstrap.isVerification;
    }

    public static boolean isSimulation() {
        return ToastBootstrap.isSimulation;
    }

    public static boolean isEmbedded() {
        return !isSimulation();
    }

    public static boolean isCompetition() {
        return Toast.getToast().station().isFMSAttached();
    }

    public static String getEnvironmentalType() {
        if (isVerification())
            return "Verification";
        else if (isSimulation())
            return "Simulation";
        else if (isEmbedded())
            return "Embedded";
        return "Unknown";
    }

    public static String getOS_Architecture() {
        return System.getProperty("os.arch");
    }

    public static String getOS_Name() {
        return System.getProperty("os.name");
    }

    public static String getOS_Version() {
        return System.getProperty("os.version");
    }

    public static String getJava_vendor() {
        return System.getProperty("java.vendor");
    }

    public static String getJava_version() {
        return System.getProperty("java.version");
    }

    public static String getJava_home() {
        return System.getProperty("java.home");
    }

}

@@ -1129,182 +1129,925 @@
 tic 
-String getJava_version() %7B%0A        return System.getProperty(%22java.version%22);%0A    %7D%0A%0A    public static String getJava_home() %7B%0A        return System.getProperty(%22java.home%22);
+OS getOS() %7B%0A        String nm = getOS_Name();%0A        for (OS os : OS.values()) %7B%0A            if (os.equals(nm))%0A                return os;%0A        %7D%0A        return OS.UNKNOWN;%0A    %7D%0A%0A    public static String getJava_version() %7B%0A        return System.getProperty(%22java.version%22);%0A    %7D%0A%0A    public static String getJava_home() %7B%0A        return System.getProperty(%22java.home%22);%0A    %7D%0A%0A    public static enum OS %7B%0A        WINDOWS(%22Win%22, false),%0A        MAC(%22Mac%22, true),%0A        LINUX(%22Nux%22, true),%0A        UNKNOWN(%22%22, false);%0A%0A        String m;%0A        boolean u;%0A%0A        OS(String match, boolean isUnix) %7B%0A            u = isUnix;%0A            m = match;%0A        %7D%0A%0A        public boolean isUnix() %7B%0A            return u;%0A        %7D%0A%0A        public String getMatcher() %7B%0A            return m;%0A        %7D%0A%0A        public boolean equals(String s) %7B%0A            return s.toLowerCase().contains(m.toLowerCase());%0A        %7D%0A
 %0A   

Add OS enumeration