Show / Hide Table of Contents

Class VerbrauchExtension

Inheritance
System.Object
VerbrauchExtension
Namespace: BO4E.Extensions.COM
Assembly: BO4E-dotnet.Extensions.dll
Syntax
public static class VerbrauchExtension : object

Methods

| Improve this Doc View Source

Contains(Verbrauch, Verbrauch)

Declaration
public static bool Contains(this Verbrauch v1, Verbrauch v2)
Parameters
Type Name Description
Verbrauch v1
Verbrauch v2
Returns
Type Description
System.Boolean
| Improve this Doc View Source

ConvertToUnit(Verbrauch, Mengeneinheit)

convert to another unit if possible

Declaration
public static void ConvertToUnit(this Verbrauch v, Mengeneinheit mengeneinheit)
Parameters
Type Name Description
Verbrauch v

Verbrauch

Mengeneinheit mengeneinheit

Mengeneinheit

| Improve this Doc View Source

Detangle(IEnumerable<Verbrauch>)

De-tangles a list of overlapping Verbrauch entries where entries can be subsets of other entries.

Declaration
public static List<Verbrauch> Detangle(IEnumerable<Verbrauch> input)
Parameters
Type Name Description
IEnumerable<Verbrauch> input
Returns
Type Description
List<Verbrauch>
Examples

[---v1---) [-----v2------) [---------v3---------) is transformed into [--v1---) ........[-v2--) ..............[--v3--)

| Improve this Doc View Source

GetDuration(Verbrauch)

Declaration
public static TimeSpan GetDuration(this Verbrauch v)
Parameters
Type Name Description
Verbrauch v
Returns
Type Description
TimeSpan
| Improve this Doc View Source

GetIntersection(Verbrauch, Verbrauch)

Declaration
public static ITimeRange GetIntersection(this Verbrauch v1, Verbrauch v2)
Parameters
Type Name Description
Verbrauch v1
Verbrauch v2
Returns
Type Description
ITimeRange
| Improve this Doc View Source

GetIntersection(Verbrauch, ITimeRange)

Declaration
public static ITimeRange GetIntersection(this Verbrauch v1, ITimeRange tr2)
Parameters
Type Name Description
Verbrauch v1
ITimeRange tr2
Returns
Type Description
ITimeRange
| Improve this Doc View Source

GetTimeRange(Verbrauch)

returns time range from Startdatum, Enddatum

Declaration
public static TimeRange GetTimeRange(this Verbrauch v)
Parameters
Type Name Description
Verbrauch v

Verbrauch

Returns
Type Description
TimeRange
| Improve this Doc View Source

Merge(Verbrauch, Verbrauch)

Merging two Verbrauch instances means adding their values whenever it's possible. But generally the result is going to contain multiple Verbrauchs.

Declaration
public static HashSet<Verbrauch> Merge(this Verbrauch v1, Verbrauch v2)
Parameters
Type Name Description
Verbrauch v1
Verbrauch v2
Returns
Type Description
HashSet<Verbrauch>
| Improve this Doc View Source

Merge(Verbrauch, Verbrauch, Boolean, Boolean)

Declaration
public static HashSet<Verbrauch> Merge(this Verbrauch v1, Verbrauch v2, bool redundant, Boolean biased)
Parameters
Type Name Description
Verbrauch v1
Verbrauch v2
System.Boolean redundant
Boolean biased
Returns
Type Description
HashSet<Verbrauch>
| Improve this Doc View Source

MergeRedundant(Verbrauch, Verbrauch, Boolean)

Declaration
public static HashSet<Verbrauch> MergeRedundant(this Verbrauch v1, Verbrauch v2, Boolean biased)
Parameters
Type Name Description
Verbrauch v1
Verbrauch v2
Boolean biased
Returns
Type Description
HashSet<Verbrauch>
| Improve this Doc View Source

OverlapsWith(Verbrauch, Verbrauch)

Test if the time ranges [startdatum, enddatum) overlap.

Declaration
public static bool OverlapsWith(this Verbrauch v1, Verbrauch v2)
Parameters
Type Name Description
Verbrauch v1
Verbrauch v2
Returns
Type Description
System.Boolean

true iff [v1.startdatum, v1.enddatum) and [v2.startdatum, v2.enddatum) overlap

| Improve this Doc View Source

OverlapsWith(Verbrauch, ITimeRange)

Declaration
public static bool OverlapsWith(this Verbrauch v1, ITimeRange tr2)
Parameters
Type Name Description
Verbrauch v1
ITimeRange tr2
Returns
Type Description
System.Boolean
  • Improve this Doc
  • View Source
Back to top Generated by DocFX