-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
for CDs * find statistics fixed
- Loading branch information
Showing
11 changed files
with
459 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
Copyright (c) 2018-2023 Festo SE & Co. KG <https://www.festo.com/net/de_de/Forms/web/contact_international> | ||
Author: Michael Hoffmeister | ||
This source code is licensed under the Apache License 2.0 (see LICENSE.txt). | ||
This source code may use other Open Source software components (see LICENSE.txt). | ||
*/ | ||
using Extensions; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using AdminShellNS; | ||
using Aas = AasCore.Aas3_0; | ||
|
||
namespace Extensions | ||
{ | ||
public static class ExtendILevelType | ||
{ | ||
public static bool IsEmpty(this ILevelType level) | ||
{ | ||
return !(level.Nom || level.Typ || level.Min || level.Max); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
Copyright (c) 2018-2023 Festo SE & Co. KG <https://www.festo.com/net/de_de/Forms/web/contact_international> | ||
Author: Michael Hoffmeister | ||
This source code is licensed under the Apache License 2.0 (see LICENSE.txt). | ||
This source code may use other Open Source software components (see LICENSE.txt). | ||
*/ | ||
using Extensions; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using AdminShellNS; | ||
using Aas = AasCore.Aas3_0; | ||
|
||
namespace Extensions | ||
{ | ||
public static class ExtendIValueList | ||
{ | ||
public static bool IsEmpty(this IValueList list) | ||
{ | ||
return list.ValueReferencePairs == null | ||
|| list.ValueReferencePairs.Count < 1; | ||
} | ||
|
||
public static bool IsValid(this IValueList list) | ||
{ | ||
if (IsEmpty(list)) | ||
return false; | ||
|
||
foreach (var vp in list.ValueReferencePairs) | ||
if (vp.Value?.HasContent() != true | ||
|| vp.ValueId?.IsValid() != true) | ||
return false; | ||
|
||
return true; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.