-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
488 additions
and
32 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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
using System.Reflection; | ||
|
||
[assembly: AssemblyVersion("6.4.7")] | ||
[assembly: AssemblyFileVersion("6.4.7")] | ||
[assembly: AssemblyVersion("6.5.0")] | ||
[assembly: AssemblyFileVersion("6.5.0")] | ||
[assembly: AssemblyCompany("TrakHound Inc.")] | ||
[assembly: AssemblyCopyright("Copyright (c) 2024 TrakHound Inc., All Rights Reserved.")] |
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
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
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
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
44 changes: 44 additions & 0 deletions
44
libraries/MTConnect.NET-Common/Devices/DataItems/LocationNarrativeDataItem.g.cs
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,44 @@ | ||
// Copyright (c) 2024 TrakHound Inc., All Rights Reserved. | ||
// TrakHound Inc. licenses this file to you under the MIT license. | ||
|
||
// MTConnect SysML v2.3 : UML ID = _19_0_3_68e0225_1712320901547_688092_333 | ||
|
||
namespace MTConnect.Devices.DataItems | ||
{ | ||
/// <summary> | ||
/// Textual description of the location of an object or activity. | ||
/// </summary> | ||
public class LocationNarrativeDataItem : DataItem | ||
{ | ||
public const DataItemCategory CategoryId = DataItemCategory.EVENT; | ||
public const string TypeId = "LOCATION_NARRATIVE"; | ||
public const string NameId = "locationNarrative"; | ||
|
||
|
||
public new const string DescriptionText = "Textual description of the location of an object or activity."; | ||
|
||
public override string TypeDescription => DescriptionText; | ||
|
||
|
||
|
||
|
||
public LocationNarrativeDataItem() | ||
{ | ||
Category = CategoryId; | ||
Type = TypeId; | ||
Name = NameId; | ||
|
||
|
||
} | ||
|
||
public LocationNarrativeDataItem(string deviceId) | ||
{ | ||
Id = CreateId(deviceId, NameId); | ||
Category = CategoryId; | ||
Type = TypeId; | ||
Name = NameId; | ||
|
||
|
||
} | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
libraries/MTConnect.NET-Common/Devices/DataItems/LocationSpatialGeographicDataItem.g.cs
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,44 @@ | ||
// Copyright (c) 2024 TrakHound Inc., All Rights Reserved. | ||
// TrakHound Inc. licenses this file to you under the MIT license. | ||
|
||
// MTConnect SysML v2.3 : UML ID = _19_0_3_68e0225_1712322699365_211671_599 | ||
|
||
namespace MTConnect.Devices.DataItems | ||
{ | ||
/// <summary> | ||
/// Absolute geographic location defined by two coordinates, longitude and latitude and an elevation. | ||
/// </summary> | ||
public class LocationSpatialGeographicDataItem : DataItem | ||
{ | ||
public const DataItemCategory CategoryId = DataItemCategory.EVENT; | ||
public const string TypeId = "LOCATION_SPATIAL_GEOGRAPHIC"; | ||
public const string NameId = "locationSpatialGeographic"; | ||
public const DataItemRepresentation DefaultRepresentation = DataItemRepresentation.TABLE; | ||
|
||
public new const string DescriptionText = "Absolute geographic location defined by two coordinates, longitude and latitude and an elevation."; | ||
|
||
public override string TypeDescription => DescriptionText; | ||
|
||
public override System.Version MinimumVersion => MTConnectVersions.Version23; | ||
|
||
|
||
public LocationSpatialGeographicDataItem() | ||
{ | ||
Category = CategoryId; | ||
Type = TypeId; | ||
Name = NameId; | ||
Representation = DefaultRepresentation; | ||
|
||
} | ||
|
||
public LocationSpatialGeographicDataItem(string deviceId) | ||
{ | ||
Id = CreateId(deviceId, NameId); | ||
Category = CategoryId; | ||
Type = TypeId; | ||
Name = NameId; | ||
Representation = DefaultRepresentation; | ||
|
||
} | ||
} | ||
} |
102 changes: 102 additions & 0 deletions
102
libraries/MTConnect.NET-Common/Devices/DataItems/ThicknessDataItem.g.cs
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,102 @@ | ||
// Copyright (c) 2024 TrakHound Inc., All Rights Reserved. | ||
// TrakHound Inc. licenses this file to you under the MIT license. | ||
|
||
// MTConnect SysML v2.3 : UML ID = _19_0_3_68e0225_1712321222573_635969_358 | ||
|
||
namespace MTConnect.Devices.DataItems | ||
{ | ||
/// <summary> | ||
/// Dimension between two surfaces of an object, usually the dimension of smallest measure, for example an additive layer, or a depth of cut. | ||
/// </summary> | ||
public class ThicknessDataItem : DataItem | ||
{ | ||
public const DataItemCategory CategoryId = DataItemCategory.EVENT; | ||
public const string TypeId = "THICKNESS"; | ||
public const string NameId = "thickness"; | ||
public const DataItemRepresentation DefaultRepresentation = DataItemRepresentation.VALUE; | ||
|
||
public new const string DescriptionText = "Dimension between two surfaces of an object, usually the dimension of smallest measure, for example an additive layer, or a depth of cut."; | ||
|
||
public override string TypeDescription => DescriptionText; | ||
|
||
|
||
|
||
|
||
public enum SubTypes | ||
{ | ||
/// <summary> | ||
/// ACTUAL. | ||
/// </summary> | ||
ACTUAL, | ||
|
||
/// <summary> | ||
/// COMMANDED. | ||
/// </summary> | ||
COMMANDED, | ||
|
||
/// <summary> | ||
/// TARGET. | ||
/// </summary> | ||
TARGET, | ||
|
||
/// <summary> | ||
/// PROGRAMMED. | ||
/// </summary> | ||
PROGRAMMED | ||
} | ||
|
||
|
||
public ThicknessDataItem() | ||
{ | ||
Category = CategoryId; | ||
Type = TypeId; | ||
Name = NameId; | ||
Representation = DefaultRepresentation; | ||
|
||
} | ||
|
||
public ThicknessDataItem( | ||
string parentId, | ||
SubTypes subType | ||
) | ||
{ | ||
Id = CreateId(parentId, NameId, GetSubTypeId(subType)); | ||
Category = CategoryId; | ||
Type = TypeId; | ||
SubType = subType.ToString(); | ||
Name = NameId; | ||
Representation = DefaultRepresentation; | ||
|
||
} | ||
|
||
public override string SubTypeDescription => GetSubTypeDescription(SubType); | ||
|
||
public static string GetSubTypeDescription(string subType) | ||
{ | ||
var s = subType.ConvertEnum<SubTypes>(); | ||
switch (s) | ||
{ | ||
case SubTypes.ACTUAL: return "ACTUAL."; | ||
case SubTypes.COMMANDED: return "COMMANDED."; | ||
case SubTypes.TARGET: return "TARGET."; | ||
case SubTypes.PROGRAMMED: return "PROGRAMMED."; | ||
} | ||
|
||
return null; | ||
} | ||
|
||
public static string GetSubTypeId(SubTypes subType) | ||
{ | ||
switch (subType) | ||
{ | ||
case SubTypes.ACTUAL: return "ACTUAL"; | ||
case SubTypes.COMMANDED: return "COMMANDED"; | ||
case SubTypes.TARGET: return "TARGET"; | ||
case SubTypes.PROGRAMMED: return "PROGRAMMED"; | ||
} | ||
|
||
return null; | ||
} | ||
|
||
} | ||
} |
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.