Révision 957b1f34 GES_PAC/Model/Journee.cs
GES_PAC/Model/Journee.cs | ||
---|---|---|
1 |
|
|
2 |
using System.Diagnostics; |
|
3 |
using System.Linq; |
|
4 |
|
|
5 | 1 |
namespace GES_PAC.Model |
6 | 2 |
{ |
7 | 3 |
public class Journee |
... | ... | |
80 | 76 |
{ |
81 | 77 |
return Series.Count > 0; |
82 | 78 |
} |
79 |
internal int GetSetCount() |
|
80 |
{ |
|
81 |
return Series.Count; |
|
82 |
} |
|
83 |
internal int GetDayAnimalCount() |
|
84 |
{ |
|
85 |
return Series.Sum(s => s.GetAnimalCount()); |
|
86 |
} |
|
87 |
|
|
88 |
internal int GetDayMeasureCount() |
|
89 |
{ |
|
90 |
return Series.Sum(s => s.GetMeasureCount()); |
|
91 |
} |
|
92 |
|
|
93 |
internal int GetDayBehaviourCount() |
|
94 |
{ |
|
95 |
return Series.Sum(s => s.GetBehaviourCount()); |
|
96 |
} |
|
97 |
internal Calibration GetLastCalibration() |
|
98 |
{ |
|
99 |
return Calibrations.Last(); |
|
100 |
} |
|
101 |
internal Calibration GetDebutCalibration() |
|
102 |
{ |
|
103 |
return Calibrations.First(c => c.Phase == PhaseCalibration.Debut); |
|
104 |
} |
|
83 | 105 |
#endregion |
84 | 106 |
} |
85 | 107 |
} |
Formats disponibles : Unified diff