Unverified Commit 53ac845a authored by Manoel Campos's avatar Manoel Campos
Browse files

Update dependencies

parent 91230e3f
......@@ -234,7 +234,7 @@
<artifactId>maven-surefire-plugin</artifactId>
<!-- There is some problem with the version 2.19.1 or with
Netbeans 8.0.2 that the JUnit GUI is not shown at the IDE-->
<version>2.20</version>
<version>2.20.1</version>
</plugin>
<plugin>
......@@ -275,7 +275,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.2</version>
<version>3.7.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
......@@ -448,7 +448,7 @@
<dependency>
<groupId>org.easymock</groupId>
<artifactId>easymock</artifactId>
<version>3.4</version>
<version>3.5</version>
<scope>test</scope>
</dependency>
<dependency>
......@@ -460,7 +460,7 @@
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.1</version>
<version>2.8.2</version>
</dependency>
</dependencies>
......@@ -488,7 +488,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.20</version>
<version>2.20.1</version>
</plugin>
</plugins>
</reporting>
......
......@@ -131,13 +131,13 @@ the intended behavior.
2. How can I code a periodic behavior to be adopted by entities?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This is done by setting an internal event to be set periodically. Upon
This is done by setting an internal event to be fired periodically. Upon
reception of the event, the handler for it is called, and the desired
behavior is implemented in such handler method. Below we show how to do
it for Datacenter class. The same steps can be used to enable such
behavior in Broker as well.
1. Extend Datacenter
1. Extend DatacenterSimple
2. Define a new tag to describe periodic event
......@@ -152,7 +152,7 @@ of internal events, otherwise simulation will never finish.**
.. code:: java
class NewDatacenter extends Datacenter {
class NewDatacenter extends DatacenterSimple {
//choose any unused value you want to represent the tag.
public static final int PERIODIC_EVENT = 67567;
......@@ -173,8 +173,9 @@ of internal events, otherwise simulation will never finish.**
//your code here
float delay; //contains the delay to the next periodic event
boolean generatePeriodicEvent; //true if new internal events have to be generated
if (generatePeriodicEvent)
if (generatePeriodicEvent) {
send(getId(), delay,PERIODIC_EVENT, data);
}
}
}
......
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