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");
    }

}

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 OS getOS() {
        String nm = getOS_Name();
        for (OS os : OS.values()) {
            if (os.equals(nm))
                return os;
        }
        return OS.UNKNOWN;
    }

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

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

    public static enum OS {
        WINDOWS("Win", false),
        MAC("Mac", true),
        LINUX("Nux", true),
        UNKNOWN("", false);

        String m;
        boolean u;

        OS(String match, boolean isUnix) {
            u = isUnix;
            m = match;
        }

        public boolean isUnix() {
            return u;
        }

        public String getMatcher() {
            return m;
        }

        public boolean equals(String s) {
            return s.toLowerCase().contains(m.toLowerCase());
        }

    }

}

Add OS enumeration