Commit 03509e81 authored by Nikolay's avatar Nikolay

Added several new constants.

parent cf394bcd
...@@ -9,10 +9,26 @@ package org.cloudbus.cloudsim; ...@@ -9,10 +9,26 @@ package org.cloudbus.cloudsim;
*/ */
public final class Consts { public final class Consts {
/** /** Suppreses intantiation. */
* Suppreses intantiation. private Consts() {
*/ }
private Consts(){}
/** One million. */
public static int MILLION = 1000000; public static int MILLION = 1000000;
// ================== Time constants ==================
/** One minute time in seconds. */
public static int MINUTE = 60;
/** One hour time in seconds. */
public static int HOUR = 60 * MINUTE;
/** One day time in seconds. */
public static int DAY = 24 * HOUR;
/** One week time in seconds. */
public static int WEEK = 24 * HOUR;
// ================== OS constants ==================
/** Constant for *nix OS-es. */
public static final String NIX_OS = "Linux/Unix";
/** Constant for Windows OS-es. */
public static final String WINDOWS = "Windows";
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment