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
Oct 21, 2014
by
Nikolay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed FindBugs warnings
parent
8670471c
Hide 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
;
}
...
...
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
;
...
...
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
);
...
...
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
;
...
...
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
++;
}
...
...
@@ -435,9 +436,10 @@ public class WorkloadFileReader implements WorkloadModel {
reader
=
new
BufferedReader
(
new
InputStreamReader
(
new
GZIPInputStream
(
new
FileInputStream
(
fl
))));
// read one line at the time
int
line
=
1
;
while
(
reader
.
ready
())
{
parseValue
(
reader
.
readLine
(),
line
);
int
line
=
1
;
String
readLine
=
null
;
while
(
reader
.
ready
()
&&
(
readLine
=
reader
.
readLine
())
!=
null
)
{
parseValue
(
readLine
,
line
);
line
++;
}
...
...
@@ -475,9 +477,10 @@ public class WorkloadFileReader implements WorkloadModel {
reader
=
new
BufferedReader
(
new
InputStreamReader
(
zipFile
.
getInputStream
(
zipEntry
)));
// read one line at the time
int
line
=
1
;
while
(
reader
.
ready
())
{
parseValue
(
reader
.
readLine
(),
line
);
int
line
=
1
;
String
readLine
=
null
;
while
(
reader
.
ready
()
&&
(
readLine
=
reader
.
readLine
())
!=
null
)
{
parseValue
(
readLine
,
line
);
line
++;
}
...
...
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