-
-
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.
Updated Devices files from SysML Import
- Loading branch information
1 parent
e0aeba4
commit ef7fe74
Showing
1,345 changed files
with
31,282 additions
and
23,552 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
applications/Clients/MTConnect.NET-Client-MQTT-Example/Properties/launchSettings.json
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,8 @@ | ||
{ | ||
"profiles": { | ||
"WSL": { | ||
"commandName": "WSL2", | ||
"distributionName": "" | ||
} | ||
} | ||
} |
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,18 +1,19 @@ | ||
using MTConnect.SysML.CSharp; | ||
using MTConnect.SysML; | ||
using MTConnect.SysML; | ||
using MTConnect.SysML.CSharp; | ||
using System.Text.Json; | ||
|
||
var xmlPath = @"D:\TrakHound\MTConnect\MTConnectSysMLModel.xml"; | ||
var outputPath = @"C:\temp\mtconnect-model-results"; | ||
var outputPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "../../../../../src/MTConnect.NET-Common"); | ||
|
||
var mtconnectModel = MTConnectModel.Parse(xmlPath); | ||
|
||
var jsonOptions = new JsonSerializerOptions(); | ||
jsonOptions.WriteIndented = true; | ||
jsonOptions.DefaultIgnoreCondition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingDefault; | ||
jsonOptions.PropertyNamingPolicy = JsonNamingPolicy.CamelCase; | ||
//var jsonOptions = new JsonSerializerOptions(); | ||
//jsonOptions.WriteIndented = true; | ||
//jsonOptions.DefaultIgnoreCondition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingDefault; | ||
//jsonOptions.PropertyNamingPolicy = JsonNamingPolicy.CamelCase; | ||
|
||
//var json = JsonSerializer.Serialize(mtconnectModel, options: jsonOptions); | ||
//await File.WriteAllTextAsync(@"C:\temp\mtconnect-model.json", json); | ||
|
||
var json = JsonSerializer.Serialize(mtconnectModel, options: jsonOptions); | ||
await File.WriteAllTextAsync(@"C:\temp\mtconnect-model.json", json); | ||
|
||
CSharpTemplateRenderer.Render(mtconnectModel, outputPath); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// Copyright (c) 2023 TrakHound Inc., All Rights Reserved. | ||
// TrakHound Inc. licenses this file to you under the MIT license. | ||
|
||
// MTConnect SysML v2.2 : UML ID = EAID_C7D39183_23CB_416b_A62D_F60815E08B1A | ||
|
||
namespace MTConnect.Assets | ||
{ | ||
/// <summary> | ||
/// Abstract Asset. | ||
/// </summary> | ||
public partial class Asset : IAsset | ||
{ | ||
public const string DescriptionText = "Abstract Asset."; | ||
|
||
|
||
/// <summary> | ||
/// Unique identifier for an Asset. | ||
/// </summary> | ||
public string AssetId { get; set; } | ||
|
||
/// <summary> | ||
/// Technical information about an entity describing its physical layout, functional characteristics, and relationships with other entities. | ||
/// </summary> | ||
public MTConnect.Devices.Configurations.IConfiguration Configuration { get; set; } | ||
|
||
/// <summary> | ||
/// Description can contain any descriptive content about the Asset. | ||
/// </summary> | ||
public MTConnect.Devices.IDescription Description { get; set; } | ||
|
||
/// <summary> | ||
/// Associated piece of equipment's UUID that supplied the Asset's data.It references to the uuid property of the Device defined in Device Information Model. | ||
/// </summary> | ||
public string DeviceUuid { get; set; } | ||
|
||
/// <summary> | ||
/// Condensed message digest from a secure one-way hash function. FIPS PUB 180-4 | ||
/// </summary> | ||
public string Hash { get; set; } | ||
|
||
/// <summary> | ||
/// Indicator that the Asset has been removed from the piece of equipment. | ||
/// </summary> | ||
public bool Removed { get; set; } | ||
|
||
/// <summary> | ||
/// Time the Asset data was last modified. | ||
/// </summary> | ||
public System.DateTime Timestamp { get; set; } | ||
} | ||
} |
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,43 @@ | ||
// Copyright (c) 2023 TrakHound Inc., All Rights Reserved. | ||
// TrakHound Inc. licenses this file to you under the MIT license. | ||
|
||
namespace MTConnect.Assets | ||
{ | ||
public static class AssetDescriptions | ||
{ | ||
/// <summary> | ||
/// Unique identifier for an Asset. | ||
/// </summary> | ||
public const string AssetId = "Unique identifier for an Asset."; | ||
|
||
/// <summary> | ||
/// Technical information about an entity describing its physical layout, functional characteristics, and relationships with other entities. | ||
/// </summary> | ||
public const string Configuration = "Technical information about an entity describing its physical layout, functional characteristics, and relationships with other entities."; | ||
|
||
/// <summary> | ||
/// Description can contain any descriptive content about the Asset. | ||
/// </summary> | ||
public const string Description = "Description can contain any descriptive content about the Asset."; | ||
|
||
/// <summary> | ||
/// Associated piece of equipment's UUID that supplied the Asset's data.It references to the uuid property of the Device defined in Device Information Model. | ||
/// </summary> | ||
public const string DeviceUuid = "Associated piece of equipment's UUID that supplied the Asset's data.It references to the uuid property of the Device defined in Device Information Model."; | ||
|
||
/// <summary> | ||
/// Condensed message digest from a secure one-way hash function. FIPS PUB 180-4 | ||
/// </summary> | ||
public const string Hash = "Condensed message digest from a secure one-way hash function. FIPS PUB 180-4"; | ||
|
||
/// <summary> | ||
/// Indicator that the Asset has been removed from the piece of equipment. | ||
/// </summary> | ||
public const string Removed = "Indicator that the Asset has been removed from the piece of equipment."; | ||
|
||
/// <summary> | ||
/// Time the Asset data was last modified. | ||
/// </summary> | ||
public const string Timestamp = "Time the Asset data was last modified."; | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
....NET-Common/Assets/ComponentConfigurationParameters/ComponentConfigurationParameters.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,21 @@ | ||
// Copyright (c) 2023 TrakHound Inc., All Rights Reserved. | ||
// TrakHound Inc. licenses this file to you under the MIT license. | ||
|
||
// MTConnect SysML v2.2 : UML ID = _19_0_3_68e0225_1678197202508_829668_17803 | ||
|
||
namespace MTConnect.Assets.ComponentConfigurationParameters | ||
{ | ||
/// <summary> | ||
/// Set of parameters that govern the functionality of the related Component. | ||
/// </summary> | ||
public class ComponentConfigurationParameters : Asset, IComponentConfigurationParameters | ||
{ | ||
public new const string DescriptionText = "Set of parameters that govern the functionality of the related Component."; | ||
|
||
|
||
/// <summary> | ||
/// Set of parameters defining the configuration of a Component. | ||
/// </summary> | ||
public System.Collections.Generic.IEnumerable<MTConnect.Assets.ComponentConfigurationParameters.IParameterSet> ParameterSets { get; set; } | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...Assets/ComponentConfigurationParameters/ComponentConfigurationParametersDescriptions.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,13 @@ | ||
// Copyright (c) 2023 TrakHound Inc., All Rights Reserved. | ||
// TrakHound Inc. licenses this file to you under the MIT license. | ||
|
||
namespace MTConnect.Assets.ComponentConfigurationParameters | ||
{ | ||
public static class ComponentConfigurationParametersDescriptions | ||
{ | ||
/// <summary> | ||
/// Set of parameters defining the configuration of a Component. | ||
/// </summary> | ||
public const string ParameterSets = "Set of parameters defining the configuration of a Component."; | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
...NET-Common/Assets/ComponentConfigurationParameters/IComponentConfigurationParameters.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,16 @@ | ||
// Copyright (c) 2023 TrakHound Inc., All Rights Reserved. | ||
// TrakHound Inc. licenses this file to you under the MIT license. | ||
|
||
namespace MTConnect.Assets.ComponentConfigurationParameters | ||
{ | ||
/// <summary> | ||
/// Set of parameters that govern the functionality of the related Component. | ||
/// </summary> | ||
public interface IComponentConfigurationParameters : IAsset | ||
{ | ||
/// <summary> | ||
/// Set of parameters defining the configuration of a Component. | ||
/// </summary> | ||
System.Collections.Generic.IEnumerable<MTConnect.Assets.ComponentConfigurationParameters.IParameterSet> ParameterSets { get; } | ||
} | ||
} |
Oops, something went wrong.