Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

7.1 Deployment #385

Merged
merged 16 commits into from
Mar 27, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<FileVersion>7.0.0.0</FileVersion>
<FileVersion>7.1.0.0</FileVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<Description>https://github.com/BHoM/BHoM_Adapter</Description>
<ImplicitUsings>enable</ImplicitUsings>
Expand Down
4 changes: 2 additions & 2 deletions .ci/unit-tests/BHoM_Adapter_Tests/Create/RandomObject.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -40,4 +40,4 @@ public static T RandomObject<T>() where T : IObject
return (T)BH.Engine.Base.Create.RandomObject(typeof(T));
}
}
}
}
4 changes: 2 additions & 2 deletions .ci/unit-tests/BHoM_Adapter_Tests/Create/RandomObjects.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -84,4 +84,4 @@ public static List<IObject> RandomIObjects(Type t, int count = 100)
return objs;
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -64,7 +64,7 @@
[Description("Useful e.g. to compare how many calls to Create are done with/without the caching mechanism.")]
public Dictionary<Type, int> CallsToDeletePerType { get; set; } = new Dictionary<Type, int>();

public StructuralAdapter(bool cacheCRUDobjects = true)

Check warning on line 67 in .ci/unit-tests/BHoM_Adapter_Tests/Objects/StructuralAdapter.cs

View check run for this annotation

BHoMBot-CI / beta-documentation-compliance

.ci/unit-tests/BHoM_Adapter_Tests/Objects/StructuralAdapter.cs#L67

Adapter constructor must contain a Description attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/HasDescriptionAttribute Method must contain an Output or MultiOutput attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/HasOutputAttribute
{
m_AdapterSettings = new AdapterSettings()
{
Expand Down Expand Up @@ -209,4 +209,4 @@

Dictionary<Type, int> m_nextId = new Dictionary<Type, int>();
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand All @@ -27,14 +27,14 @@

namespace BH.Tests.Adapter
{
[Description("")]

Check warning on line 30 in .ci/unit-tests/BHoM_Adapter_Tests/Objects/StructuralAdapterId.cs

View check run for this annotation

BHoMBot-CI / beta-documentation-compliance

.ci/unit-tests/BHoM_Adapter_Tests/Objects/StructuralAdapterId.cs#L30

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
public class StructuralAdapterId : IAdapterId
{
/***************************************************/
/**** Properties ****/
/***************************************************/

[Description("")]

Check warning on line 37 in .ci/unit-tests/BHoM_Adapter_Tests/Objects/StructuralAdapterId.cs

View check run for this annotation

BHoMBot-CI / beta-documentation-compliance

.ci/unit-tests/BHoM_Adapter_Tests/Objects/StructuralAdapterId.cs#L37

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
public virtual object Id { get; set; }


Expand All @@ -44,3 +44,4 @@
}



5 changes: 3 additions & 2 deletions .ci/unit-tests/BHoM_Adapter_Tests/Objects/TestContainer.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -34,3 +34,4 @@ public class TestContainer<T> : BHoMObject, IContainer
}
}


5 changes: 3 additions & 2 deletions .ci/unit-tests/BHoM_Adapter_Tests/Objects/TestFragment.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -31,3 +31,4 @@ public class TestFragment : IFragment
}
}


4 changes: 2 additions & 2 deletions .ci/unit-tests/BHoM_Adapter_Tests/PushTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -577,4 +577,4 @@ public void DuplicateObjects_EnsureAllOutputHaveIds()
pushed.ShouldAllBe(x => BH.Engine.Base.Query.FindFragment<StructuralAdapterId>(x, typeof(StructuralAdapterId)) != null, "At least one of the pushed objects did not contain an AdapterId Fragment.");
}
}
}
}
2 changes: 1 addition & 1 deletion Adapter_Engine/Adapter_Engine.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<Authors>BHoM</Authors>
<Copyright>Copyright © https://github.com/BHoM</Copyright>
<RootNamespace>BH.Engine.Adapter</RootNamespace>
<FileVersion>7.0.0.0</FileVersion>
<FileVersion>7.1.0.0</FileVersion>
<Configurations>Debug;Release;Test</Configurations>
</PropertyGroup>

Expand Down
3 changes: 2 additions & 1 deletion Adapter_Engine/Create/BHoMAdapter.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -163,3 +163,4 @@ public static IBHoMAdapter BHoMAdapter(Type adapterType, List<object> parameters
}



3 changes: 2 additions & 1 deletion Adapter_Engine/Modify/SetAdapterId.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -38,7 +38,7 @@
/**** Public Methods ****/
/***************************************************/

public static void SetAdapterId<T>(this IBHoMObject bHoMObject, Type adapterIdFragmentType, T id)

Check warning on line 41 in Adapter_Engine/Modify/SetAdapterId.cs

View check run for this annotation

BHoMBot-CI / beta-documentation-compliance

Adapter_Engine/Modify/SetAdapterId.cs#L41

Input parameter requires a matching Input attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/IsInputAttributePresent Input parameter requires a matching Input attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/IsInputAttributePresent Input parameter requires a matching Input attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/IsInputAttributePresent
{
if(bHoMObject == null)
{
Expand Down Expand Up @@ -68,7 +68,7 @@
bHoMObject.Fragments.AddOrReplace(newAdapterIdFragment);
}

public static void SetAdapterId(this IBHoMObject bHoMObject, IAdapterId id)

Check warning on line 71 in Adapter_Engine/Modify/SetAdapterId.cs

View check run for this annotation

BHoMBot-CI / beta-documentation-compliance

Adapter_Engine/Modify/SetAdapterId.cs#L71

Input parameter requires a matching Input attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/IsInputAttributePresent Input parameter requires a matching Input attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/IsInputAttributePresent
{
if (bHoMObject == null)
{
Expand All @@ -83,3 +83,4 @@




3 changes: 2 additions & 1 deletion Adapter_Engine/Query/AdapterId.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -42,7 +42,7 @@
[Description("Returns the BHoMObject's Id of the provided FragmentType, casted to its type.\n" +
"If more than one matching IdFragment is found, an error is returned.")]
[Input("notFoundWarning", "If true, a Warning is issued when no matching ID is found.")]
public static T AdapterId<T>(this IBHoMObject bHoMObject, Type adapterIdFragmentType, bool notFoundWarning = true)

Check warning on line 45 in Adapter_Engine/Query/AdapterId.cs

View check run for this annotation

BHoMBot-CI / beta-documentation-compliance

Adapter_Engine/Query/AdapterId.cs#L45

Input parameter requires a matching Input attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/IsInputAttributePresent Input parameter requires a matching Input attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/IsInputAttributePresent Method must contain an Output or MultiOutput attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/HasOutputAttribute
{
object id = AdapterIds(bHoMObject, adapterIdFragmentType);

Expand Down Expand Up @@ -79,3 +79,4 @@
}



3 changes: 2 additions & 1 deletion Adapter_Engine/Query/AdapterIds.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -42,7 +42,7 @@
[Description("Returns the BHoMObject's Id of the provided FragmentType. " +
"If more than one matching IdFragment is found, the method returns a List of all Ids of that type." +
"If none is found, `null` is returned.")]
public static object AdapterIds(this IBHoMObject bHoMObject, Type adapterIdFragmentType = null)

Check warning on line 45 in Adapter_Engine/Query/AdapterIds.cs

View check run for this annotation

BHoMBot-CI / beta-documentation-compliance

Adapter_Engine/Query/AdapterIds.cs#L45

Input parameter requires a matching Input attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/IsInputAttributePresent Input parameter requires a matching Input attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/IsInputAttributePresent Method must contain an Output or MultiOutput attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/HasOutputAttribute
{
if(bHoMObject == null)
{
Expand Down Expand Up @@ -75,3 +75,4 @@




4 changes: 2 additions & 2 deletions Adapter_Engine/Query/AdapterMethods.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -38,7 +38,7 @@
/***************************************************/

[Description("Returns a list of MethodInfo with all methods contained in classes whose name ends with `Adapter`.")]
public static List<MethodInfo> AdapterMethods()

Check warning on line 41 in Adapter_Engine/Query/AdapterMethods.cs

View check run for this annotation

BHoMBot-CI / beta-documentation-compliance

Adapter_Engine/Query/AdapterMethods.cs#L41

Method must contain an Output or MultiOutput attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/HasOutputAttribute
{
// If the list exists already, return it
if (m_AdapterMethodsList != null && m_AdapterMethodsList.Count > 0)
Expand All @@ -58,4 +58,4 @@

private static List<MethodInfo> m_AdapterMethodsList = new List<MethodInfo>();
}
}
}
4 changes: 2 additions & 2 deletions Adapter_Engine/Query/AdaptersCRUDNamedMethods.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -60,4 +60,4 @@ public static Dictionary<string, List<MethodInfo>> AdaptersCRUDNamedMethods()
return groupedCRUDmethods;
}
}
}
}
4 changes: 2 additions & 2 deletions Adapter_Engine/Query/CRUDcompatibleTypes.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -126,4 +126,4 @@ private static bool IsOfAllowedTypes(this Type type)
}

}
}
}
3 changes: 2 additions & 1 deletion Adapter_Engine/Query/GetComparerForType.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -42,7 +42,7 @@
// These are support methods required by other methods in the Push process.

[Description("Returns the comparer to be used with a certain object type.")]
public static IEqualityComparer<T> GetComparerForType<T>(this IBHoMAdapter bHoMAdapter, ActionConfig actionConfig = null) where T : IBHoMObject

Check warning on line 45 in Adapter_Engine/Query/GetComparerForType.cs

View check run for this annotation

BHoMBot-CI / beta-documentation-compliance

Adapter_Engine/Query/GetComparerForType.cs#L45

Input parameter requires a matching Input attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/IsInputAttributePresent Input parameter requires a matching Input attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/IsInputAttributePresent Method must contain an Output or MultiOutput attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/HasOutputAttribute
{
Type type = typeof(T);

Expand All @@ -65,3 +65,4 @@




3 changes: 2 additions & 1 deletion Adapter_Engine/Query/GetCopyPropertiesModules.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -33,7 +33,7 @@
public static partial class Query
{
[Description("Gets any adapter module on the adapter for copying properties of an object of type T to another object of type T.")]
public static List<ICopyPropertiesModule<T>> GetCopyPropertiesModules<T>(this IBHoMAdapter adapter) where T : IBHoMObject

Check warning on line 36 in Adapter_Engine/Query/GetCopyPropertiesModules.cs

View check run for this annotation

BHoMBot-CI / beta-documentation-compliance

Adapter_Engine/Query/GetCopyPropertiesModules.cs#L36

Input parameter requires a matching Input attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/IsInputAttributePresent Method must contain an Output or MultiOutput attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/HasOutputAttribute
{
return adapter.AdapterModules.OfType<ICopyPropertiesModule<T>>().ToList();
}
Expand All @@ -43,3 +43,4 @@




3 changes: 2 additions & 1 deletion Adapter_Engine/Query/GetDependencyObjects.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -44,7 +44,7 @@
[Input("objects", "Objects to get the dependency objects for.")]
[Input("dependencyTypes", "List of types that have dependencies.")]
[Input("adapter", "Adapter for which dependencies must be gathered.")]
public static Dictionary<Type, IEnumerable> GetDependencyObjects<T>(this IEnumerable<T> objects, List<Type> dependencyTypes, IBHoMAdapter adapter = null) where T : IBHoMObject

Check warning on line 47 in Adapter_Engine/Query/GetDependencyObjects.cs

View check run for this annotation

BHoMBot-CI / beta-documentation-compliance

Adapter_Engine/Query/GetDependencyObjects.cs#L47

Method must contain an Output or MultiOutput attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/HasOutputAttribute
{
if (objects == null || !objects.Any() || dependencyTypes == null || !dependencyTypes.Any())
return new Dictionary<Type, IEnumerable>();
Expand Down Expand Up @@ -97,3 +97,4 @@




3 changes: 2 additions & 1 deletion Adapter_Engine/Query/GetDependencySortedObjects.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -45,7 +45,7 @@
[Input("objects", "Objects to group and sort by dependency order. The dependency of these objects will also be gathered recursively and included in the output.")]
[Input("pushType", "PushType provided in the Push.")]
[Input("bHoMAdapter", "The DependencyTypes that define the order of the output will be gathered from this Adapter instance.")]
public static List<Tuple<Type, PushType, IEnumerable<object>>> GetDependencySortedObjects(this IEnumerable<IBHoMObject> objects, PushType pushType, IBHoMAdapter bHoMAdapter)

Check warning on line 48 in Adapter_Engine/Query/GetDependencySortedObjects.cs

View check run for this annotation

BHoMBot-CI / beta-documentation-compliance

Adapter_Engine/Query/GetDependencySortedObjects.cs#L48

Method must contain an Output or MultiOutput attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/HasOutputAttribute
{
if ((!objects?.Any() ?? true) || bHoMAdapter == null)
return new List<Tuple<Type, PushType, IEnumerable<object>>>();
Expand Down Expand Up @@ -169,3 +169,4 @@
}



3 changes: 2 additions & 1 deletion Adapter_Engine/Query/GetDependencyTypes.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -39,13 +39,13 @@
// These are support methods required by other methods in the Push process.

[Description("Returns the dependency types for a certain object type.")]
public static List<Type> GetDependencyTypes<T>(this IBHoMAdapter bhomAdapter)

Check warning on line 42 in Adapter_Engine/Query/GetDependencyTypes.cs

View check run for this annotation

BHoMBot-CI / beta-documentation-compliance

Adapter_Engine/Query/GetDependencyTypes.cs#L42

Input parameter requires a matching Input attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/IsInputAttributePresent Method must contain an Output or MultiOutput attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/HasOutputAttribute
{
return GetDependencyTypes(bhomAdapter, typeof(T));
}

[Description("Returns the dependency types for a certain object type.")]
public static List<Type> GetDependencyTypes(this IBHoMAdapter bhomAdapter, Type type)

Check warning on line 48 in Adapter_Engine/Query/GetDependencyTypes.cs

View check run for this annotation

BHoMBot-CI / beta-documentation-compliance

Adapter_Engine/Query/GetDependencyTypes.cs#L48

Input parameter requires a matching Input attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/IsInputAttributePresent Input parameter requires a matching Input attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/IsInputAttributePresent Method must contain an Output or MultiOutput attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/HasOutputAttribute
{
List<Type> dependencyTypes = new List<Type>();

Expand All @@ -68,3 +68,4 @@




3 changes: 2 additions & 1 deletion Adapter_Engine/Query/GetFullFileName.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -32,9 +32,9 @@
{
public static partial class Query
{
[Description("Queries the full file path to where the file is located on your computer, for use with the file settings")]

Check warning on line 35 in Adapter_Engine/Query/GetFullFileName.cs

View check run for this annotation

BHoMBot-CI / beta-documentation-compliance

Adapter_Engine/Query/GetFullFileName.cs#L35

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
[Input("fileSettings", "The file settings object which contains the file path data")]

Check warning on line 36 in Adapter_Engine/Query/GetFullFileName.cs

View check run for this annotation

BHoMBot-CI / beta-documentation-compliance

Adapter_Engine/Query/GetFullFileName.cs#L36

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
[Output("fullFilePath", "The full file path for the file settings")]

Check warning on line 37 in Adapter_Engine/Query/GetFullFileName.cs

View check run for this annotation

BHoMBot-CI / beta-documentation-compliance

Adapter_Engine/Query/GetFullFileName.cs#L37

Documentation attribute should end with grammatically correct punctuation (., !, or ?) - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/AttributeHasEndingPunctuation
public static string GetFullFileName(this FileSettings fileSettings)
{
if(fileSettings == null)
Expand All @@ -51,3 +51,4 @@




4 changes: 2 additions & 2 deletions Adapter_Engine/Query/GetObjectsAndRecursiveDependencies.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -44,7 +44,7 @@
[Input("objects", "Objects to group. The dependency of these objects will also be gathered recursively and included in the output.")]
[Input("pushType", "PushType provided in the Push.")]
[Input("adapter", "The DependencyTypes will be gathered from this Adapter instance.")]
public static Dictionary<Tuple<Type, PushType>, List<IBHoMObject>> GetObjectsAndRecursiveDependencies(this IEnumerable<IBHoMObject> objects, PushType pushType, IBHoMAdapter adapter)

Check warning on line 47 in Adapter_Engine/Query/GetObjectsAndRecursiveDependencies.cs

View check run for this annotation

BHoMBot-CI / beta-documentation-compliance

Adapter_Engine/Query/GetObjectsAndRecursiveDependencies.cs#L47

Method must contain an Output or MultiOutput attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/HasOutputAttribute
{
// Group the objects by their specific type.
var typeGroups = objects.GroupBy(x => x.GetType());
Expand Down Expand Up @@ -95,4 +95,4 @@

/***************************************************/
}
}
}
3 changes: 2 additions & 1 deletion Adapter_Engine/Query/HasAdapterIdFragment.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -39,7 +39,7 @@
/**** Public Methods ****/
/***************************************************/

public static bool HasAdapterIdFragment(this IBHoMObject iBHoMObject, Type fragmentType)

Check warning on line 42 in Adapter_Engine/Query/HasAdapterIdFragment.cs

View check run for this annotation

BHoMBot-CI / beta-documentation-compliance

Adapter_Engine/Query/HasAdapterIdFragment.cs#L42

Input parameter requires a matching Input attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/IsInputAttributePresent Input parameter requires a matching Input attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/IsInputAttributePresent Method must contain an Output or MultiOutput attribute - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/HasOutputAttribute
{
if (iBHoMObject == null)
return false; //Null objects don't have fragments at all!
Expand All @@ -61,3 +61,4 @@




2 changes: 1 addition & 1 deletion Adapter_oM/Adapter_oM.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<Authors>BHoM</Authors>
<Copyright>Copyright © https://github.com/BHoM</Copyright>
<RootNamespace>BH.oM.Adapter</RootNamespace>
<FileVersion>7.0.0.0</FileVersion>
<FileVersion>7.1.0.0</FileVersion>
<Configurations>Debug;Release;Test</Configurations>
</PropertyGroup>

Expand Down
3 changes: 2 additions & 1 deletion Adapter_oM/Enums/PullType.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -40,3 +40,4 @@ public enum PullType




3 changes: 2 additions & 1 deletion Adapter_oM/Enums/PushType.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -52,3 +52,4 @@ namespace BH.oM.Adapter




3 changes: 2 additions & 1 deletion Adapter_oM/ExecuteCommands/Analyse.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -38,3 +38,4 @@ public class Analyse : IExecuteCommand




3 changes: 2 additions & 1 deletion Adapter_oM/ExecuteCommands/AnalyseLoadCases.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -41,3 +41,4 @@ public class AnalyseLoadCases : IExecuteCommand




3 changes: 2 additions & 1 deletion Adapter_oM/ExecuteCommands/ClearResults.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2023, the respective contributors. All rights reserved.
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
Expand Down Expand Up @@ -38,3 +38,4 @@ public class ClearResults : IExecuteCommand




Loading
Loading