StructuralLoadGroup Class |
[This is preliminary documentation and is subject to change.]
Namespace: ModelExchanger.AnalysisDataModel.Loads
public sealed class StructuralLoadGroup : StructuralAnalysisObjectBase, ILoadAnalysisObject, IStructuralAnalysisObject, IAnalysisObject, IEquatable<StructuralLoadGroup>
The StructuralLoadGroup type exposes the following members.
Name | Description | |
---|---|---|
StructuralLoadGroup |
Create a load group of the provided type
|
Name | Description | |
---|---|---|
Id |
The ID of the Analysis object.
Needs to be unique within the entire model
(Inherited from StructuralAnalysisObjectBase.) | |
Load |
Defines the type of variable load
| |
LoadGroupType |
Defines the type of load group
| |
Name |
The name of the Analysis object.
Needs to be unique within it's type
(Inherited from StructuralAnalysisObjectBase.) | |
Relation |
Defines the relation between load cases in this load group
|
Name | Description | |
---|---|---|
Equals(Object) |
Check if this object is the same as the provided object.
(Overrides StructuralAnalysisObjectBaseEquals(Object).) | |
Equals(StructuralAnalysisObjectBase) |
Check if this object is the same as the provided object.
(Inherited from StructuralAnalysisObjectBase.) | |
Equals(StructuralLoadGroup) | Indicates whether the current object is equal to another object of the same type. | |
GetHashCode |
Retrieves the hashcode of the object
(Overrides StructuralAnalysisObjectBaseGetHashCode.) |
Name | Description | |
---|---|---|
PropertyChanged | (Inherited from StructuralAnalysisObjectBase.) |
Name | Description | |
---|---|---|
ToObjectIdentifier |
Converts the provided IAnalysisObject into an AnalysisObjectIdentifier (Defined by IAnalysisObjectExtensions.) |
using System; using System.Collections.Generic; using CSInfrastructure; using ModelExchanger.AnalysisDataModel.Enums; using ModelExchanger.AnalysisDataModel.Loads; using ModelExchanger.AnalysisDataModel.Models; namespace ModelExchanger.AnalysisDataModel.Example.Loads { public sealed class StructuralLoadGroupExample : BaseExample<StructuralLoadGroup> { protected override IReadOnlyCollection<StructuralLoadGroup> CreateAnalysisObjects(AnalysisModel model) { return new[] { new StructuralLoadGroup(Guid.NewGuid(), "LG1", LoadGroupType.Permanent), new StructuralLoadGroup(Guid.NewGuid(), "LG2", LoadGroupType.Variable) { Relation = Relation.Standard, Load = new FlexibleEnum<Load>(Load.Domestic) }, new StructuralLoadGroup(Guid.NewGuid(), "LG3", LoadGroupType.Variable) { Relation = Relation.Standard, Load = new FlexibleEnum<Load>(Load.Roofs) }, new StructuralLoadGroup(Guid.NewGuid(), "LG4", LoadGroupType.Variable) { Relation = Relation.Standard, Load = new FlexibleEnum<Load>(Load.Snow) }, new StructuralLoadGroup(Guid.NewGuid(), "LG5", LoadGroupType.Variable) { Relation = Relation.Standard, Load = new FlexibleEnum<Load>(Load.Wind) }, new StructuralLoadGroup(Guid.NewGuid(), "LG6", LoadGroupType.Accidental) { Relation = Relation.Exclusive, }, new StructuralLoadGroup(Guid.NewGuid(), "LG7", LoadGroupType.Seismic) { Relation = Relation.Together }, new StructuralLoadGroup(Guid.NewGuid(), "LG8", LoadGroupType.Variable) { Relation = Relation.Standard, Load = Load.Temperature } }; } } }