Interface SubmodelElementCollection

  • All Superinterfaces:
    HasDataSpecification, HasExtensions, HasKind, HasSemantics, Qualifiable, Referable, SubmodelElement
    All Known Implementing Classes:
    DefaultSubmodelElementCollection

    public interface SubmodelElementCollection
    extends SubmodelElement
    A submodel element collection is a set or list of submodel elements. Constraint AASd-059: If the semanticId of a SubmodelElementCollection references a ConceptDescription then the category of the ConceptDescription shall be COLLECTION or ENTITY. Constraint AASd-092: If the semanticId of a SubmodelElementCollection with SubmodelElementCollection/allowDuplicates == false references a ConceptDescription then the ConceptDescription/category shall be ENTITY. Constraint AASd-093: If the semanticId of a SubmodelElementCollection with SubmodelElementCollection/allowDuplicates == true references a ConceptDescription then the ConceptDescription/category shall be COLLECTION.
    • Method Detail

      • getAllowDuplicates

        boolean getAllowDuplicates()
        If allowDuplicates=true then it is allowed that the collection contains the same element several times. Default = false Constraint AASd-026: If allowDuplicates==false then it is not allowed that the collection contains several elements with the same semantics (i.e. the same semanticId). More information under https://admin-shell.io/aas/3/0/RC01/SubmodelElementCollection/allowDuplicates
        Returns:
        Returns the boolean for the property allowDuplicates.
      • setAllowDuplicates

        void setAllowDuplicates​(boolean allowDuplicates)
        If allowDuplicates=true then it is allowed that the collection contains the same element several times. Default = false Constraint AASd-026: If allowDuplicates==false then it is not allowed that the collection contains several elements with the same semantics (i.e. the same semanticId). More information under https://admin-shell.io/aas/3/0/RC01/SubmodelElementCollection/allowDuplicates
        Parameters:
        allowDuplicates - desired value for the property allowDuplicates.
      • getOrdered

        boolean getOrdered()
        If ordered=false then the elements in the property collection are not ordered. If ordered=true then the elements in the collection are ordered. Default = false More information under https://admin-shell.io/aas/3/0/RC01/SubmodelElementCollection/ordered
        Returns:
        Returns the boolean for the property ordered.
      • setOrdered

        void setOrdered​(boolean ordered)
        If ordered=false then the elements in the property collection are not ordered. If ordered=true then the elements in the collection are ordered. Default = false More information under https://admin-shell.io/aas/3/0/RC01/SubmodelElementCollection/ordered
        Parameters:
        ordered - desired value for the property ordered.
      • getValues

        java.util.Collection<SubmodelElement> getValues()
        Submodel element contained in the collection. More information under https://admin-shell.io/aas/3/0/RC01/SubmodelElementCollection/value
        Returns:
        Returns the Collection of SubmodelElements for the property values.
      • setValues

        void setValues​(java.util.Collection<SubmodelElement> values)
        Submodel element contained in the collection. More information under https://admin-shell.io/aas/3/0/RC01/SubmodelElementCollection/value
        Parameters:
        values - desired value for the property values.