Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
G
gpucloudsim
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LPDS
gpucloudsim
Commits
03509e81
Commit
03509e81
authored
Aug 29, 2013
by
Nikolay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added several new constants.
parent
cf394bcd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
6 deletions
+22
-6
Consts.java
.../cloudsim/src/main/java/org/cloudbus/cloudsim/Consts.java
+22
-6
No files found.
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/Consts.java
View file @
03509e81
...
...
@@ -5,14 +5,30 @@ package org.cloudbus.cloudsim;
* Defines common constants, used throughout cloudsim.
*
* @author nikolay.grozev
*
*
*/
public
final
class
Consts
{
/**
* Suppreses intantiation.
*/
private
Consts
(){}
/**
Suppreses intantiation. */
private
Consts
()
{
}
/** One million. */
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"
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment