Skip to content
This repository has been archived by the owner on Jun 22, 2019. It is now read-only.

Methods_T_AMLEngineExtensions_BasicExtensions

AutomationML edited this page Feb 22, 2017 · 1 revision

BasicExtensions Methods

The BasicExtensions type exposes the following members.

Methods

 

Name Description
Public methodStatic member AddInstance Inserts a new class instance to the parentInternalElement. If there are existing instances of the same Type, the Element is inserted after the last Element of that Type. Before Insertion, the Uniqueness of the Name among the siblings of that Type is checked.
Public methodStatic member AddInternalElement Add an internalElement to the parentInstanceHierarchy. If there are existing internalElements, the Element is inserted after the last Child. Before Insertion, the Uniqueness of the Name among the children is checked.
Public methodStatic member AddNewInternalElement(InstanceHierarchyType, String) Creates a new InternalElement and inserts it after the last InternalElement of the parent InstanceHierarchy if the elementName is unique among the childs. The ChangeMode is set to the Value 'Create'
Public methodStatic member AddNewInternalElement(SystemUnitClassType, String) Creates a new InternalElement and inserts it after the last InternalElement of the parent if the elementName is unique among the childs. The ChangeMode is set to the Value 'Create'
Public methodStatic member All Returns a flat list of all attributes of an object, nested attributes inclusive.
Public methodStatic member ClearMetaInformation Removes all "Writer Header" specific meta information out of this CAEX file.
Public methodStatic member Clone_Save(T) Clones a CAEX Object.
Public methodStatic member DeleteMetaInformation This function deletes any existing meta information corresponding to the writerID.
Public methodStatic member GetAllFullRolePathNamesForRequiredRoles Gets all full role path names of the required roles for the given internal element.
Public methodStatic member GetAllFullRolePathNamesForSupportedRoles Gets all full role path names of the supported roles for the given internal element.
Public methodStatic member GetAllRoleNamesForRequiredRoles Gets all role names of the required roles for the given internal element.
Public methodStatic member GetAllRoleNamesForSupportedRoles Gets all role names of the supported roles for the given internal element.
Public methodStatic member GetAttribute(IObjectWithAttributes, String) Finds an attribute with a given name.
Public methodStatic member GetAttribute(MemberElement_Attribute, String) Finds an attribute with a given name.
Public methodStatic member GetAttributeValue Returns an attribute value of a given attribute name.
Public methodStatic member GetAutomationMLVersion Returns the AutomationML Version of CAEX-File. This string is automatically be set by the AutomationML engine while creating a new CAEX document.
Public methodStatic member GetChangeMode Returns the change mode out of the given CAEXBasicObject.
Public methodStatic member GetClassName(InterfaceClassType) Returns the class name of the given external interface.
Public methodStatic member GetClassName(InternalElementType) Returns the class name of the given InternalElement.
Public methodStatic member GetFullClassName(InterfaceClassType) Returns the full class name of the given external interface.
Public methodStatic member GetFullClassName(InternalElementType) Returns the class name of the given InternalElement.
Public methodStatic member GetMetaInformation(CAEXFileType) This methods returns an Enumeration of all "WriterHeader" meta information out of an existing AutomationML file.
Public methodStatic member GetMetaInformation(CAEXFileType, String) This function returns the MetaInformation corresponding to the writerID, otherwise null.
Public methodStatic member GetMetaObjectInformation(CAEXObject) this methods returns the meta information out of an existing AutomationML file for an AutomationML Object
Public methodStatic member GetMetaObjectInformation(CAEXObject, String) this methods returns the meta information out of an existing AutomationML file for an AutomationML Object and a specific Writer-ID
Public methodStatic member GetParent Enables every CAEXBasicObject to get its parent object as a CAEX_ClassModel class. You must cast the result in your own code.
Public methodStatic member GetRefBaseClassPath(InterfaceClassType) Get the RefBaseClassPath of the given external interface.
Public methodStatic member GetRefBaseClassPath(RoleClassType) Get the ClassPath of a RoleClass (Inheritance Relation)
Public methodStatic member GetRefBaseClassPath(SystemUnitClassType) Get the ClassPath of a SystemUnitClassType (Inheritance Relation)
Public methodStatic member GetRefBaseSystemUnitPath Returns the path of the referenced SystemUnitClass with path information, or an empty string if not available.
Public methodStatic member GetRoleName Gets the role name of the given internal element.
Public methodStatic member GetWriterHeader This methods returns an Enumeration of all "WriterHeader" meta information out of an existing AutomationML file.
Public methodStatic member HasColladaInterface Determines whether the specified systemUnitClass has a collada interface.
Public methodStatic member HasPLCOpenInterface Determines whether the specified systemUnitClass has a PLCOpen interface.
Public methodStatic member HasRoleReference(InternalElementType, String) Checks, if a role reference is present in the RoleRequirements or the SupportedRoleClasses of the given internal element.
Public methodStatic member HasRoleReference(SystemUnitClassType, RoleClassType) Checks, if a role reference to the RoleClass is present in the SupportedRoleClasses of the given systemUnitClass.
Public methodStatic member HasRoleReference(SystemUnitClassType, String) Checks, if a role reference is present in the SupportedRoleClasses of the given systemUnitClass.
Public methodStatic member Name Get the Name of the specified object.
Public methodStatic member Remove Deletes the object from the AML document.
Public methodStatic member RemoveSubElements(T) Removes all InternalElement and ExternalInterface Elements from a SystemUnit Class.
Public methodStatic member Replace(T) Replaces a CaexObject by another CaexObject
Public methodStatic member ReplaceMetaInformation This function replaces any existing meta information corresponding to the identical oldWriterID with the new meta information defined in the newMetainformation
Public methodStatic member RoleReference returns the role reference if it is present in the RoleRequirements or the SupportedRoleClasses of the given internal element.
Public methodStatic member SetAutomationMLVersion Allows setting the AutomationML Version of CAEX-File. The version string is automatically be set by the AutomationML engine while creating a new CAEX document.
Public methodStatic member SetChangeMode Sets or removes the change mode of the given CAEXBasicObject.
Public methodStatic member SetMetaInformation(CAEXFileType, MetaInformation) This method is a short version of the setMetaInformation. Metadata with identical WriterID is replaced.
Public methodStatic member SetMetaInformation(CAEXFileType, String, String, String, String, String, String, String, String, String) This function sets the meta information required from AutomationML standard. If meta information about the same writerID already exists, this meta information is replaced. These information comprise source information about the AutomationML file.
Public methodStatic member SetMetaInformationStandardAutomationMLLibrary This method labels this CAEX file as a standard AutomationML library coming from the AutomationML e.V. It removes all other meta information and should only be used from authorized persons in agreement with the AutomationML e.V.
Public methodStatic member SetMetaObjectInformation(CAEXObject, MetaObjectInformation) this method is a short version of the setMetaInformation for any caex object
Public methodStatic member SetMetaObjectInformation(CAEXObject, String, String, String) this function sets the meta information to store tool specific object-IDs
Public methodStatic member SetRole Sets the role class path of the provided InternalElement.
  Back to Top

See Also

Reference

BasicExtensions Class
AMLEngineExtensions Namespace

  • Introduction
  • [Version History](Version history)
    • [Version 3.5](Version 3.4)
    • [Version 3.1](Version 3.0)
    • [Version 2.1](Version 2.1)
    • [Version 2.0](Version 2.0)
  • [Getting Started](Getting started)
  • Examples
  • AMLEngine API
BEST Practice Content

Extensions

CAEX Elements

AutomationML

Utilities

Interfaceclasses

Exceptions

Objecttables and Document validation

Clone this wiki locally