Class PortInfoImpl

  • All Implemented Interfaces:
    PortInfo, ReadOnlyWithExtendedName, ReadOnlyWithName, WithExtendedName, WithName, eu.mihosoft.vmf.runtime.core.Immutable, eu.mihosoft.vmf.runtime.core.internal.VObjectInternal, eu.mihosoft.vmf.runtime.core.ObservableObject, eu.mihosoft.vmf.runtime.core.ReadOnly, eu.mihosoft.vmf.runtime.core.VObject, java.lang.Cloneable

    public class PortInfoImpl
    extends java.lang.Object
    implements PortInfo, eu.mihosoft.vmf.runtime.core.VObject, eu.mihosoft.vmf.runtime.core.internal.VObjectInternal
    An implementation of the immutable model object eu.mihosoft.devcom.PortInfo.
    • Method Detail

      • getDescription

        public java.lang.String getDescription()
        Description copied from interface: PortInfo
        Returns the value of the 'description' property.

        The port description. Some devices add the serial number (e.g. FTDI chips).

        Specified by:
        getDescription in interface PortInfo
        Returns:
        the value of the 'description' property.
      • getExtendedName

        public java.lang.String getExtendedName()
        Description copied from interface: PortInfo
        Returns the value of the 'extendedName' property.

        The extended port name, e.g., 'COM3 - Arduino UNO'

        Specified by:
        getExtendedName in interface PortInfo
        Specified by:
        getExtendedName in interface ReadOnlyWithExtendedName
        Specified by:
        getExtendedName in interface WithExtendedName
        Returns:
        the value of the 'extendedName' property.
        See Also:
        eu.mihosoft.devcom.WithExtendedName#setExtendedName(java.lang.String)
      • getLocation

        public java.lang.String getLocation()
        Description copied from interface: PortInfo
        Returns the value of the 'location' property.

        The port location.

        Specified by:
        getLocation in interface PortInfo
        Returns:
        the value of the 'location' property.
      • getName

        public java.lang.String getName()
        Description copied from interface: PortInfo
        Returns the value of the 'name' property.

        The port name used to identify the port, e.g. 'COM3'.

        Specified by:
        getName in interface PortInfo
        Specified by:
        getName in interface ReadOnlyWithName
        Specified by:
        getName in interface WithName
        Returns:
        the value of the 'name' property.
        See Also:
        eu.mihosoft.devcom.WithName#setName(java.lang.String)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • __vmf_toString

        public void __vmf_toString​(java.lang.StringBuilder sb,
                                   java.util.IdentityHashMap<java.lang.Object,​?> _vmf_fToStringChecker)
        Specified by:
        __vmf_toString in interface eu.mihosoft.vmf.runtime.core.internal.VObjectInternal
      • _vmf_equals

        public boolean _vmf_equals​(java.lang.Object o)
        Specified by:
        _vmf_equals in interface eu.mihosoft.vmf.runtime.core.internal.VObjectInternal
      • _vmf_hashCode

        public int _vmf_hashCode()
        Specified by:
        _vmf_hashCode in interface eu.mihosoft.vmf.runtime.core.internal.VObjectInternal
      • _vmf_setThreadLocalEquals

        public void _vmf_setThreadLocalEquals​(java.lang.ThreadLocal<java.util.Map<eu.mihosoft.vmf.runtime.core.internal.VObjectInternal.EqualsPair,​?>> threadlocalMap)
        Specified by:
        _vmf_setThreadLocalEquals in interface eu.mihosoft.vmf.runtime.core.internal.VObjectInternal
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • addPropertyChangeListener

        public void addPropertyChangeListener​(java.beans.PropertyChangeListener l)
        Specified by:
        addPropertyChangeListener in interface eu.mihosoft.vmf.runtime.core.ObservableObject
      • removePropertyChangeListener

        public void removePropertyChangeListener​(java.beans.PropertyChangeListener l)
        Specified by:
        removePropertyChangeListener in interface eu.mihosoft.vmf.runtime.core.ObservableObject
      • _vmf_deepCopy

        public PortInfo _vmf_deepCopy​(java.util.IdentityHashMap<java.lang.Object,​java.lang.Object> identityMap)
      • _vmf_shallowCopy

        public PortInfo _vmf_shallowCopy​(java.util.IdentityHashMap<java.lang.Object,​java.lang.Object> identityMap)
      • vmf

        public eu.mihosoft.vmf.runtime.core.VMF vmf()
        Specified by:
        vmf in interface eu.mihosoft.vmf.runtime.core.VObject
      • _vmf_getType

        public eu.mihosoft.vmf.runtime.core.Type _vmf_getType()
        Specified by:
        _vmf_getType in interface eu.mihosoft.vmf.runtime.core.internal.VObjectInternal
      • _vmf_getTypeId

        public int _vmf_getTypeId()
        Specified by:
        _vmf_getTypeId in interface eu.mihosoft.vmf.runtime.core.internal.VObjectInternal
      • _vmf_getSuperTypeNames

        public java.lang.String[] _vmf_getSuperTypeNames()
        Specified by:
        _vmf_getSuperTypeNames in interface eu.mihosoft.vmf.runtime.core.internal.VObjectInternal
      • _vmf_getPropertyNames

        public java.lang.String[] _vmf_getPropertyNames()
        Specified by:
        _vmf_getPropertyNames in interface eu.mihosoft.vmf.runtime.core.internal.VObjectInternal
      • _vmf_getPropertyTypes

        public int[] _vmf_getPropertyTypes()
        Specified by:
        _vmf_getPropertyTypes in interface eu.mihosoft.vmf.runtime.core.internal.VObjectInternal
      • _vmf_getPropertyTypeNames

        public java.lang.String[] _vmf_getPropertyTypeNames()
        Specified by:
        _vmf_getPropertyTypeNames in interface eu.mihosoft.vmf.runtime.core.internal.VObjectInternal
      • _vmf_getIndicesOfPropertiesWithModelTypes

        public int[] _vmf_getIndicesOfPropertiesWithModelTypes()
        Specified by:
        _vmf_getIndicesOfPropertiesWithModelTypes in interface eu.mihosoft.vmf.runtime.core.internal.VObjectInternal
      • _vmf_getIndicesOfPropertiesWithModelElementTypes

        public int[] _vmf_getIndicesOfPropertiesWithModelElementTypes()
        Specified by:
        _vmf_getIndicesOfPropertiesWithModelElementTypes in interface eu.mihosoft.vmf.runtime.core.internal.VObjectInternal
      • _vmf_getIndicesOfPropertiesWithModelTypeOrElementTypes

        public int[] _vmf_getIndicesOfPropertiesWithModelTypeOrElementTypes()
        Specified by:
        _vmf_getIndicesOfPropertiesWithModelTypeOrElementTypes in interface eu.mihosoft.vmf.runtime.core.internal.VObjectInternal
      • _vmf_getChildrenIndices

        public int[] _vmf_getChildrenIndices()
        Specified by:
        _vmf_getChildrenIndices in interface eu.mihosoft.vmf.runtime.core.internal.VObjectInternal
      • _vmf_getParentIndices

        public int[] _vmf_getParentIndices()
        Specified by:
        _vmf_getParentIndices in interface eu.mihosoft.vmf.runtime.core.internal.VObjectInternal
      • _vmf_getPropertyValueById

        public java.lang.Object _vmf_getPropertyValueById​(int propertyId)
        Specified by:
        _vmf_getPropertyValueById in interface eu.mihosoft.vmf.runtime.core.internal.VObjectInternal
      • _vmf_getPropertyIdByName

        public int _vmf_getPropertyIdByName​(java.lang.String propertyName)
        Specified by:
        _vmf_getPropertyIdByName in interface eu.mihosoft.vmf.runtime.core.internal.VObjectInternal
      • _vmf_getDefaultValueById

        public java.lang.Object _vmf_getDefaultValueById​(int propertyId)
        Specified by:
        _vmf_getDefaultValueById in interface eu.mihosoft.vmf.runtime.core.internal.VObjectInternal
      • _vmf_setDefaultValueById

        public void _vmf_setDefaultValueById​(int propertyId,
                                             java.lang.Object defaultValue)
        Specified by:
        _vmf_setDefaultValueById in interface eu.mihosoft.vmf.runtime.core.internal.VObjectInternal
      • _vmf_isSetById

        public boolean _vmf_isSetById​(int propertyId)
        Specified by:
        _vmf_isSetById in interface eu.mihosoft.vmf.runtime.core.internal.VObjectInternal
      • _vmf_getPropertyAnnotationsById

        public java.util.List<eu.mihosoft.vmf.runtime.core.Annotation> _vmf_getPropertyAnnotationsById​(int propertyId)
        Specified by:
        _vmf_getPropertyAnnotationsById in interface eu.mihosoft.vmf.runtime.core.internal.VObjectInternal
      • _vmf_getAnnotations

        public java.util.List<eu.mihosoft.vmf.runtime.core.Annotation> _vmf_getAnnotations()
        Specified by:
        _vmf_getAnnotations in interface eu.mihosoft.vmf.runtime.core.internal.VObjectInternal
      • _vmf_referencedBy

        public eu.mihosoft.vcollections.VList<eu.mihosoft.vmf.runtime.core.VObject> _vmf_referencedBy()
        Specified by:
        _vmf_referencedBy in interface eu.mihosoft.vmf.runtime.core.internal.VObjectInternal
      • _vmf_references

        public eu.mihosoft.vcollections.VList<eu.mihosoft.vmf.runtime.core.VObject> _vmf_references()
        Specified by:
        _vmf_references in interface eu.mihosoft.vmf.runtime.core.internal.VObjectInternal