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
29c3edf5
Commit
29c3edf5
authored
10 years ago
by
Nikolay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed FindBugs warnings
parent
8670471c
master
No related merge requests found
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
13 deletions
+17
-13
NetDatacenterBroker.java
...dbus/cloudsim/network/datacenter/NetDatacenterBroker.java
+1
-1
NetworkDatacenter.java
...oudbus/cloudsim/network/datacenter/NetworkDatacenter.java
+1
-1
Switch.java
...java/org/cloudbus/cloudsim/network/datacenter/Switch.java
+3
-2
MathUtil.java
...im/src/main/java/org/cloudbus/cloudsim/util/MathUtil.java
+1
-1
WorkloadFileReader.java
...n/java/org/cloudbus/cloudsim/util/WorkloadFileReader.java
+11
-8
No files found.
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/network/datacenter/NetDatacenterBroker.java
View file @
29c3edf5
...
...
@@ -146,7 +146,7 @@ public class NetDatacenterBroker extends SimEntity {
getCloudletList
().
addAll
(
list
);
}
public
void
setLinkDC
(
NetworkDatacenter
alinkDC
)
{
public
static
void
setLinkDC
(
NetworkDatacenter
alinkDC
)
{
linkDC
=
alinkDC
;
}
...
...
This diff is collapsed.
Click to expand it.
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/network/datacenter/NetworkDatacenter.java
View file @
29c3edf5
...
...
@@ -80,7 +80,7 @@ public class NetworkDatacenter extends Datacenter {
Switchlist
=
new
HashMap
<
Integer
,
Switch
>();
}
public
Map
<
Integer
,
Integer
>
VmToSwitchid
;
public
Map
<
Integer
,
Integer
>
VmToSwitchid
=
new
HashMap
<
Integer
,
Integer
>()
;
public
Map
<
Integer
,
Integer
>
HostToSwitchid
;
...
...
This diff is collapsed.
Click to expand it.
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/network/datacenter/Switch.java
View file @
29c3edf5
...
...
@@ -9,6 +9,7 @@
package
org
.
cloudbus
.
cloudsim
.
network
.
datacenter
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.Iterator
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -64,13 +65,13 @@ public class Switch extends SimEntity {
// something is running on these hosts
public
SortedMap
<
Double
,
List
<
NetworkVm
>>
fintimelistVM
=
new
TreeMap
<
Double
,
List
<
NetworkVm
>>();
public
ArrayList
<
NetworkPacket
>
pktlist
;
public
ArrayList
<
NetworkPacket
>
pktlist
=
new
ArrayList
<
NetworkPacket
>()
;
public
List
<
Vm
>
BagofTaskVm
=
new
ArrayList
<
Vm
>();
public
double
switching_delay
;
public
Map
<
Integer
,
NetworkVm
>
Vmlist
;
public
Map
<
Integer
,
NetworkVm
>
Vmlist
=
new
HashMap
<
Integer
,
NetworkVm
>()
;
public
Switch
(
String
name
,
int
level
,
NetworkDatacenter
dc
)
{
super
(
name
);
...
...
This diff is collapsed.
Click to expand it.
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/util/MathUtil.java
View file @
29c3edf5
...
...
@@ -311,7 +311,7 @@ public class MathUtil {
double
[]
estimates
=
tricubeBySquareRegression
.
regress
()
.
getParameterEstimates
();
if
(
estimates
[
0
]
==
Double
.
NaN
||
estimates
[
1
]
==
Double
.
NaN
)
{
if
(
Double
.
isNaN
(
estimates
[
0
])
||
Double
.
isNaN
(
estimates
[
1
])
)
{
return
tricubeRegression
.
regress
().
getParameterEstimates
();
}
return
estimates
;
...
...
This diff is collapsed.
Click to expand it.
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/util/WorkloadFileReader.java
View file @
29c3edf5
...
...
@@ -404,8 +404,9 @@ public class WorkloadFileReader implements WorkloadModel {
// read one line at the time
int
line
=
1
;
while
(
reader
.
ready
())
{
parseValue
(
reader
.
readLine
(),
line
);
String
readLine
=
null
;
while
(
reader
.
ready
()
&&
(
readLine
=
reader
.
readLine
())
!=
null
)
{
parseValue
(
readLine
,
line
);
line
++;
}
...
...
@@ -436,8 +437,9 @@ public class WorkloadFileReader implements WorkloadModel {
// read one line at the time
int
line
=
1
;
while
(
reader
.
ready
())
{
parseValue
(
reader
.
readLine
(),
line
);
String
readLine
=
null
;
while
(
reader
.
ready
()
&&
(
readLine
=
reader
.
readLine
())
!=
null
)
{
parseValue
(
readLine
,
line
);
line
++;
}
...
...
@@ -476,8 +478,9 @@ public class WorkloadFileReader implements WorkloadModel {
// read one line at the time
int
line
=
1
;
while
(
reader
.
ready
())
{
parseValue
(
reader
.
readLine
(),
line
);
String
readLine
=
null
;
while
(
reader
.
ready
()
&&
(
readLine
=
reader
.
readLine
())
!=
null
)
{
parseValue
(
readLine
,
line
);
line
++;
}
...
...
This diff is collapsed.
Click to expand it.
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