From d1401c12851c92bffdedd5669bd3a9cdb6b13d20 Mon Sep 17 00:00:00 2001
From: guille <guillermopolito@gmail.com>
Date: Thu, 27 Oct 2016 17:50:12 +0200
Subject: [PATCH] Reformatted
---
.../emeraude/n2s3/core/GlobalTimestamp.scala | 30 +++++++++----------
1 file changed, 15 insertions(+), 15 deletions(-)
diff --git a/n2s3/src/main/scala/fr/univ_lille/cristal/emeraude/n2s3/core/GlobalTimestamp.scala b/n2s3/src/main/scala/fr/univ_lille/cristal/emeraude/n2s3/core/GlobalTimestamp.scala
index 6f0a57f2..a9e451f6 100644
--- a/n2s3/src/main/scala/fr/univ_lille/cristal/emeraude/n2s3/core/GlobalTimestamp.scala
+++ b/n2s3/src/main/scala/fr/univ_lille/cristal/emeraude/n2s3/core/GlobalTimestamp.scala
@@ -1,28 +1,28 @@
-/************************************************************************************************************
- * Contributors:
- * - created by Pierre Falez on 10/05/16.
- ***********************************************************************************************************/
+/** **********************************************************************************************************
+ * Contributors:
+ * - created by Pierre Falez on 10/05/16.
+ * **********************************************************************************************************/
package fr.univ_lille.cristal.emeraude.n2s3.core
import fr.univ_lille.cristal.emeraude.n2s3.core.GlobalTypesAlias.Timestamp
import fr.univ_lille.cristal.emeraude.n2s3.support.actors.Message
class GlobalTimestamp {
- var timestamp : Timestamp = 0
+ var timestamp: Timestamp = 0
}
trait TimestampGenerator {
- var currentMaxTimestamp : Timestamp = 0
+ var currentMaxTimestamp: Timestamp = 0
- def getGlobalTimestamp : GlobalTimestamp
+ def getGlobalTimestamp: GlobalTimestamp
- def toGlobalTimestamp(rawTimestamp : Timestamp) : Timestamp = {
- currentMaxTimestamp = math.max(rawTimestamp, currentMaxTimestamp)
- getGlobalTimestamp.timestamp+rawTimestamp
- }
+ def toGlobalTimestamp(rawTimestamp: Timestamp): Timestamp = {
+ currentMaxTimestamp = math.max(rawTimestamp, currentMaxTimestamp)
+ getGlobalTimestamp.timestamp + rawTimestamp
+ }
-def endOfStage() : Unit = {
- getGlobalTimestamp.timestamp += currentMaxTimestamp
- currentMaxTimestamp = 0
-}
+ def endOfStage(): Unit = {
+ getGlobalTimestamp.timestamp += currentMaxTimestamp
+ currentMaxTimestamp = 0
+ }
}
\ No newline at end of file
--
GitLab