Skip to content

Commit e6992c4

Browse files
Ran Source Generation for v2.4 SysML
1 parent eb4952c commit e6992c4

19 files changed

Lines changed: 459 additions & 22 deletions

File tree

build/MTConnect.NET-SysML-Import/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using System.Text.Json;
66

77
//var xmlPath = @"D:\TrakHound\MTConnect\MTConnectSysMLModel.xml";
8-
var xmlPath = @"D:\TrakHound\MTConnect\Standard\v2.3\MTConnectSysMLModel.xml";
8+
var xmlPath = @"D:\TrakHound\MTConnect\Standard\v2.4\MTConnectSysMLModel.xml";
99

1010
var mtconnectModel = MTConnectModel.Parse(xmlPath);
1111

libraries/MTConnect.NET-Common/Assets/ComponentConfigurationParameters/IParameter.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
namespace MTConnect.Assets.ComponentConfigurationParameters
55
{
66
/// <summary>
7-
/// Property defining a configuration of a Component.
7+
/// Property that determines the characteristic or behavior of an entity.
88
/// </summary>
99
public interface IParameter
1010
{

libraries/MTConnect.NET-Common/Assets/ComponentConfigurationParameters/IParameterSet.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public interface IParameterSet
1414
string Name { get; }
1515

1616
/// <summary>
17-
/// Property defining a configuration of a Component.
17+
/// Property that determines the characteristic or behavior of an entity.
1818
/// </summary>
1919
System.Collections.Generic.IEnumerable<MTConnect.Assets.ComponentConfigurationParameters.IParameter> Parameters { get; }
2020
}

libraries/MTConnect.NET-Common/Assets/ComponentConfigurationParameters/Parameter.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
namespace MTConnect.Assets.ComponentConfigurationParameters
77
{
88
/// <summary>
9-
/// Property defining a configuration of a Component.
9+
/// Property that determines the characteristic or behavior of an entity.
1010
/// </summary>
1111
public class Parameter : IParameter
1212
{
13-
public const string DescriptionText = "Property defining a configuration of a Component.";
13+
public const string DescriptionText = "Property that determines the characteristic or behavior of an entity.";
1414

1515

1616
/// <summary>

libraries/MTConnect.NET-Common/Assets/ComponentConfigurationParameters/ParameterSet.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class ParameterSet : IParameterSet
1919
public string Name { get; set; }
2020

2121
/// <summary>
22-
/// Property defining a configuration of a Component.
22+
/// Property that determines the characteristic or behavior of an entity.
2323
/// </summary>
2424
public System.Collections.Generic.IEnumerable<MTConnect.Assets.ComponentConfigurationParameters.IParameter> Parameters { get; set; }
2525
}

libraries/MTConnect.NET-Common/Assets/ComponentConfigurationParameters/ParameterSetDescriptions.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ public static class ParameterSetDescriptions
1111
public const string Name = "Name of the parameter set if more than one exists.";
1212

1313
/// <summary>
14-
/// Property defining a configuration of a Component.
14+
/// Property that determines the characteristic or behavior of an entity.
1515
/// </summary>
16-
public const string Parameters = "Property defining a configuration of a Component.";
16+
public const string Parameters = "Property that determines the characteristic or behavior of an entity.";
1717
}
1818
}

libraries/MTConnect.NET-Common/Devices/Components/TankComponent.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
namespace MTConnect.Devices.Components
77
{
88
/// <summary>
9-
/// Leaf Component composed of a receptacle or container that holds material.
9+
/// Leaf Component generally composed of an enclosed container.
1010
/// </summary>
1111
public class TankComponent : Component
1212
{
1313
public const string TypeId = "Tank";
1414
public const string NameId = "tank";
15-
public new const string DescriptionText = "Leaf Component composed of a receptacle or container that holds material.";
15+
public new const string DescriptionText = "Leaf Component generally composed of an enclosed container.";
1616

1717
public override string TypeDescription => DescriptionText;
1818

libraries/MTConnect.NET-Common/Devices/Components/VatComponent.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
namespace MTConnect.Devices.Components
77
{
88
/// <summary>
9-
/// Leaf Component composed of a container that holds liquid or powdered materials.
9+
/// Leaf Component generally composed of an open container.
1010
/// </summary>
1111
public class VatComponent : Component
1212
{
1313
public const string TypeId = "Vat";
1414
public const string NameId = "vat";
15-
public new const string DescriptionText = "Leaf Component composed of a container that holds liquid or powdered materials.";
15+
public new const string DescriptionText = "Leaf Component generally composed of an open container.";
1616

1717
public override string TypeDescription => DescriptionText;
1818

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// Copyright (c) 2024 TrakHound Inc., All Rights Reserved.
2+
// TrakHound Inc. licenses this file to you under the MIT license.
3+
4+
// MTConnect SysML v2.3 : UML ID = _19_0_3_68e0225_1712320901547_688092_333
5+
6+
namespace MTConnect.Devices.DataItems
7+
{
8+
/// <summary>
9+
/// Textual description of the location of an object or activity.
10+
/// </summary>
11+
public class LocationNarrativeDataItem : DataItem
12+
{
13+
public const DataItemCategory CategoryId = DataItemCategory.EVENT;
14+
public const string TypeId = "LOCATION_NARRATIVE";
15+
public const string NameId = "locationNarrative";
16+
17+
18+
public new const string DescriptionText = "Textual description of the location of an object or activity.";
19+
20+
public override string TypeDescription => DescriptionText;
21+
22+
23+
24+
25+
public LocationNarrativeDataItem()
26+
{
27+
Category = CategoryId;
28+
Type = TypeId;
29+
Name = NameId;
30+
31+
32+
}
33+
34+
public LocationNarrativeDataItem(string deviceId)
35+
{
36+
Id = CreateId(deviceId, NameId);
37+
Category = CategoryId;
38+
Type = TypeId;
39+
Name = NameId;
40+
41+
42+
}
43+
}
44+
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// Copyright (c) 2024 TrakHound Inc., All Rights Reserved.
2+
// TrakHound Inc. licenses this file to you under the MIT license.
3+
4+
// MTConnect SysML v2.3 : UML ID = _19_0_3_68e0225_1712322699365_211671_599
5+
6+
namespace MTConnect.Devices.DataItems
7+
{
8+
/// <summary>
9+
/// Absolute geographic location defined by two coordinates, longitude and latitude and an elevation.
10+
/// </summary>
11+
public class LocationSpatialGeographicDataItem : DataItem
12+
{
13+
public const DataItemCategory CategoryId = DataItemCategory.EVENT;
14+
public const string TypeId = "LOCATION_SPATIAL_GEOGRAPHIC";
15+
public const string NameId = "locationSpatialGeographic";
16+
public const DataItemRepresentation DefaultRepresentation = DataItemRepresentation.TABLE;
17+
18+
public new const string DescriptionText = "Absolute geographic location defined by two coordinates, longitude and latitude and an elevation.";
19+
20+
public override string TypeDescription => DescriptionText;
21+
22+
public override System.Version MinimumVersion => MTConnectVersions.Version23;
23+
24+
25+
public LocationSpatialGeographicDataItem()
26+
{
27+
Category = CategoryId;
28+
Type = TypeId;
29+
Name = NameId;
30+
Representation = DefaultRepresentation;
31+
32+
}
33+
34+
public LocationSpatialGeographicDataItem(string deviceId)
35+
{
36+
Id = CreateId(deviceId, NameId);
37+
Category = CategoryId;
38+
Type = TypeId;
39+
Name = NameId;
40+
Representation = DefaultRepresentation;
41+
42+
}
43+
}
44+
}

0 commit comments

Comments
 (0)