[longomatch] Code formatting.
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Code formatting.
- Date: Tue, 5 May 2015 09:09:01 +0000 (UTC)
commit ad84e4a5ca16c39f1834cc472b8d9ad0f36c6075
Author: Julien Moutte <julien fluendo com>
Date: Tue Apr 28 15:30:31 2015 +0200
Code formatting.
LongoMatch.Core/Store/TimeNode.cs | 24 ++++++++++++++++--------
1 files changed, 16 insertions(+), 8 deletions(-)
---
diff --git a/LongoMatch.Core/Store/TimeNode.cs b/LongoMatch.Core/Store/TimeNode.cs
index 4fb2433..39524af 100644
--- a/LongoMatch.Core/Store/TimeNode.cs
+++ b/LongoMatch.Core/Store/TimeNode.cs
@@ -36,12 +36,16 @@ namespace LongoMatch.Core.Store
Time start, stop, eventTime;
#region Constructors
- public TimeNode() {
+
+ public TimeNode ()
+ {
Rate = 1;
}
+
#endregion
#region Properties
+
/// <summary>
/// A short description of the time node
/// </summary>
@@ -134,24 +138,28 @@ namespace LongoMatch.Core.Store
}
}
- public TimeNode Join (TimeNode tn) {
+ public TimeNode Join (TimeNode tn)
+ {
if (tn.Stop < Start || tn.Start > Stop)
return null;
else
return new TimeNode {
- Start = new Time (Math.Min (Start.MSeconds, tn.Start.MSeconds)),
- Stop = new Time (Math.Max (Stop.MSeconds, tn.Stop.MSeconds))};
+ Start = new Time (Math.Min (Start.MSeconds, tn.Start.MSeconds)),
+ Stop = new Time (Math.Max (Stop.MSeconds, tn.Stop.MSeconds))
+ };
}
-
- public TimeNode Intersect (TimeNode tn) {
+
+ public TimeNode Intersect (TimeNode tn)
+ {
if (tn.Stop == null || tn.Start == null || Start == null || Stop == null)
return null;
if (tn.Stop <= Start || tn.Start >= Stop)
return null;
else
return new TimeNode {
- Start = new Time (Math.Max (Start.MSeconds, tn.Start.MSeconds)),
- Stop = new Time (Math.Min (Stop.MSeconds, tn.Stop.MSeconds))};
+ Start = new Time (Math.Max (Start.MSeconds, tn.Start.MSeconds)),
+ Stop = new Time (Math.Min (Stop.MSeconds, tn.Stop.MSeconds))
+ };
}
#endregion
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]