Class SwitchableBody
Last update: 16.07.2025Namespace: VM.Managed.DAFUL
Assembly: VMDFBase.dll
This class is to represent the switchable body.
public class SwitchableBody : SubEntity, IObservableObject, IDisposableObject, ILinkable, ILinkContainerEvent, IVerifiable, IHistoryObjectSerializable, IAttributeContainer, ISubEntity, IEntityBase, IObjectBase, IObject, IEventProvider, IHasKeyObject, IHasName, IEnabled, IHasComment, INamed, INavigatorItem, IMarkerCreatable, IConnectable, IMarkerParent, IEntityRelation, IHasBody, ITemplateObject, IArgument, IContainer, ILinkContainer, IOwned, IHasID, IReferencable, IInterface, IMultiChangable
Inheritance
object ←
ObservableObject ←
LinkableBase ←
ObjectBase ←
Object
Implements
IObservableObject, IDisposableObject, ILinkable, ILinkContainerEvent, IVerifiable, IHistoryObjectSerializable, IAttributeContainer, ISubEntity, IEntityBase, IObjectBase, IObject, IEventProvider, IHasKeyObject, IHasName, IEnabled, IHasComment, INamed, INavigatorItem, IMarkerCreatable, IConnectable, IMarkerParent, IEntityRelation, IHasBody, ITemplateObject, IArgument, IContainer, ILinkContainer, IOwned, IHasID, IReferencable, IInterface, IMultiChangable
Inherited Members
SubEntity.Initialize(Unit.ConvertFactor),
SubEntity.GetModelNavigatorInformationImpl(XmlDocument, XmlElement, bool),
SubEntity.FixUp(ObjectBase),
SubEntity.WriteTemplateImpl(XmlWriter),
SubEntity.ReadTemplateImpl(XmlReader),
SubEntity.Name,
SubEntity.FullName,
SubEntity.NonSymmetricName,
SubEntity.DisplayName,
SubEntity.IsEnabled,
SubEntity.Comment,
Object
Extension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType),
LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType),
LinkPropertyItemCache.GetLinkedObjects
Constructors
SwitchableBody()
Initializes a new instance of the
public SwitchableBody()
SwitchableBody(string)
Initializes a new instance of the
public SwitchableBody(string strName)
Parameters
strName string
Name of the STR.
Properties
ActiveConnectableObject
Gets or sets the active connectable object.
public IConnectable ActiveConnectableObject { get; set; }
Property Value
ActiveConnectableObjectName
Gets or sets the name of the active connectable object.
public string ActiveConnectableObjectName { get; set; }
Property Value
ArgumentType
Gets the type of the argument
public ArgumentTypes ArgumentType { get; }
Property Value
ArgumentTypes
Body
Gets the body.
public IBody Body { get; }
Property Value
IBody
ConnectableBody
Gets the connectable body.
public ObjectBase ConnectableBody { get; }
Property Value
ObjectBase
ConnectableFullName
Gets the full name of the connectable.
public string ConnectableFullName { get; }
Property Value
ConnectableName
Gets the name of the connectable.
public string ConnectableName { get; }
Property Value
ConnectableObjectNames
Gets or sets the connectable object names.
public string[] ConnectableObjectNames { get; set; }
Property Value
string[]
ConnectablePosition
Sets the connectable position.
public Vector ConnectablePosition { set; }
Property Value
Vector
ConnectablePostfixName
Sets the postfix name of the connectable.
public string ConnectablePostfixName { set; }
Property Value
Connectors
Gets or sets the connectors.
public IConnectable[] Connectors { get; set; }
Property Value
Markers
Gets or sets marker dictionary.
public NamedObjectDictionary<marker> Markers { get; set; }
Property Value
NamedObjectDictionaryMarker>
ParentType
Gets the type of the marker's parent.
public MarkerParentType ParentType { get; }
Property Value
ReferenceFrameType
Gets the type of the marker's reference frame.
public MarkerReferenceFrameType ReferenceFrameType { get; }
Property Value
ReferenceType
Gets the type of the array for argument.
public string ReferenceType { get; }
Property Value
SymmetricManagers
Gets or sets the symmetric manager dictionary.
public NamedObjectDictionary<symmetricmanager> SymmetricManagers { get; set; }
Property Value
NamedObjectDictionary
Methods
AddConnectableObject(IConnectable)
Adds the connectable object.
public void AddConnectableObject(IConnectable ic)
Parameters
ic IConnectable
The connectable object.
FixUp(ObjectBase)
Before destroy the old object, perform a work.
public override bool FixUp(ObjectBase ob)
Parameters
ob ObjectBase
The old object.
Returns
true if success; otherwise, false.
GetModelNavigatorInformationImpl(XmlDocument, XmlElement, bool)
Gets the object information for model navigator [implementation].
protected override bool GetModelNavigatorInformationImpl(XmlDocument xmlDom, XmlElement xmlEle, bool bHasChild)
Parameters
xmlDom XmlDocument
The XmlDocument for object.
xmlEle XmlElement
The XmlElement for object.
bHasChild bool
if set to true [has child].
Returns
true if success; otherwise, false.
Initialize(ConvertFactor)
Initializes member through unit convert factor.
public override void Initialize(Unit.ConvertFactor factor)
Parameters
factor Unit.ConvertFactor
The unit convert factor.
LinkRequestUpdate(object, LinkEventArgs)
Request for update the linked object.
protected override void LinkRequestUpdate(object objNotifier, LinkEventArgs arg)
Parameters
objNotifier object
The linked object.
arg LinkEventArgs
The
OnDeserialization(object)
Called when [deserialization].
protected override void OnDeserialization(object sender)
Parameters
sender object
The sender.
RemoveConnectableObject(IConnectable)
Removes the connectable object.
public bool RemoveConnectableObject(IConnectable ic)
Parameters
ic IConnectable
The connectable object.