Skip to content

Commit

Permalink
Update SysML Import
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickRitchie committed Oct 30, 2023
1 parent 686dd7b commit 80c8380
Show file tree
Hide file tree
Showing 92 changed files with 456 additions and 2,774 deletions.
40 changes: 36 additions & 4 deletions build/MTConnect.NET-SysML-Import/CSharp/TemplateRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,12 @@ public static void Render(MTConnectModel mtconnectModel, string outputPath)
//case "Devices.Configurations.CriticalityType": ((EnumModel)template).Values.Add(new MTConnectEnumValueModel { Name = "NOT_SPECIFIED" }); break;

case "Assets.Asset": ((ClassModel)template).IsPartial = true; break;
case "Assets.ComponentConfigurationParameters.ComponentConfigurationParameter": ((ClassModel)template).IsPartial = true; break;
case "Assets.ComponentConfigurationParameters.ComponentConfigurationParameters":
((ClassModel)template).IsPartial = true;
((ClassModel)template).Id += "Asset";
((ClassModel)template).Name += "Asset";
if (((ClassModel)template).ParentName != null && ((ClassModel)template).ParentName != "Asset") ((ClassModel)template).ParentName += "Asset";
break;
case "Assets.CuttingTools.CuttingTool":
((ClassModel)template).IsPartial = true;
((ClassModel)template).Id += "Asset";
Expand All @@ -130,9 +135,36 @@ public static void Render(MTConnectModel mtconnectModel, string outputPath)
((ClassModel)template).IsPartial = true;
((ClassModel)template).IsAbstract = false;
break;
case "Assets.Files.File": ((ClassModel)template).IsPartial = true; break;
case "Assets.QIF.QIFDocument": ((ClassModel)template).IsPartial = true; break;
case "Assets.RawMaterials.RawMaterial": ((ClassModel)template).IsPartial = true; break;
case "Assets.Files.File":
((ClassModel)template).IsPartial = true;
((ClassModel)template).Id += "Asset";
((ClassModel)template).Name += "Asset";
if (((ClassModel)template).ParentName != null && ((ClassModel)template).ParentName != "Asset") ((ClassModel)template).ParentName += "Asset";
break;
case "Assets.Files.FileArchetype":
((ClassModel)template).IsPartial = true;
((ClassModel)template).Id += "Asset";
((ClassModel)template).Name += "Asset";
if (((ClassModel)template).ParentName != null && ((ClassModel)template).ParentName != "Asset") ((ClassModel)template).ParentName += "Asset";
break;
case "Assets.Files.AbstractFile":
((ClassModel)template).IsPartial = true;
((ClassModel)template).Id += "Asset";
((ClassModel)template).Name += "Asset";
if (((ClassModel)template).ParentName != null && ((ClassModel)template).ParentName != "Asset") ((ClassModel)template).ParentName += "Asset";
break;
case "Assets.QIF.QIFDocumentWrapper":
((ClassModel)template).IsPartial = true;
((ClassModel)template).Id += "Asset";
((ClassModel)template).Name += "Asset";
if (((ClassModel)template).ParentName != null && ((ClassModel)template).ParentName != "Asset") ((ClassModel)template).ParentName += "Asset";
break;
case "Assets.RawMaterials.RawMaterial":
((ClassModel)template).IsPartial = true;
((ClassModel)template).Id += "Asset";
((ClassModel)template).Name += "Asset";
if (((ClassModel)template).ParentName != null && ((ClassModel)template).ParentName != "Asset") ((ClassModel)template).ParentName += "Asset";
break;
}

templates.Add(template);
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace MTConnect.Assets.ComponentConfigurationParameters
/// <summary>
/// Set of parameters that govern the functionality of the related Component.
/// </summary>
public class ComponentConfigurationParameters : Asset, IComponentConfigurationParameters
public partial class ComponentConfigurationParametersAsset : Asset, IComponentConfigurationParametersAsset
{
public new const string DescriptionText = "Set of parameters that govern the functionality of the related Component.";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace MTConnect.Assets.ComponentConfigurationParameters
{
public static class ComponentConfigurationParametersDescriptions
public static class ComponentConfigurationParametersAssetDescriptions
{
/// <summary>
/// Set of parameters defining the configuration of a Component.
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace MTConnect.Assets.ComponentConfigurationParameters
/// <summary>
/// Set of parameters that govern the functionality of the related Component.
/// </summary>
public interface IComponentConfigurationParameters : IAsset
public partial interface IComponentConfigurationParametersAsset : IAsset
{
/// <summary>
/// Set of parameters defining the configuration of a Component.
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 80c8380

Please sign in to comment.