Class PortConfigImpl

java.lang.Object
eu.mihosoft.devcom.impl.PortConfigImpl
All Implemented Interfaces:
PortConfig, ReadOnlyWithName, 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, Cloneable

public class PortConfigImpl extends Object implements PortConfig, eu.mihosoft.vmf.runtime.core.VObject, eu.mihosoft.vmf.runtime.core.internal.VObjectInternal
An implementation of the immutable model object eu.mihosoft.devcom.PortConfig.
  • Field Details

  • Method Details

    • getBaudRate

      public int getBaudRate()
      Description copied from interface: PortConfig
      Returns the value of the 'baudRate' property.

      The baud rate used for sending and receiving data.

      Specified by:
      getBaudRate in interface PortConfig
      Returns:
      the value of the 'baudRate' property.
    • getName

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

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

      Specified by:
      getName in interface PortConfig
      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)
    • getNumberOfDataBits

      public int getNumberOfDataBits()
      Description copied from interface: PortConfig
      Returns the value of the 'numberOfDataBits' property.

      The number of data bits (usually 8).

      Specified by:
      getNumberOfDataBits in interface PortConfig
      Returns:
      the value of the 'numberOfDataBits' property.
    • getParityBits

      public ParityBits getParityBits()
      Description copied from interface: PortConfig
      Returns the value of the 'parityBits' property.

      The number of parity bits.

      Specified by:
      getParityBits in interface PortConfig
      Returns:
      the value of the 'parityBits' property.
    • isRS485ModeEnabled

      public boolean isRS485ModeEnabled()
      Description copied from interface: PortConfig
      Returns the value of the 'rS485ModeEnabled' property.

      Determines, whether RS485 mode should be enabled

      Specified by:
      isRS485ModeEnabled in interface PortConfig
      Returns:
      the value of the 'rS485ModeEnabled' property.
    • getSafetyTimeout

      public int getSafetyTimeout()
      Description copied from interface: PortConfig
      Returns the value of the 'safetyTimeout' property.

      Safety timeout used for opening the port (in milliseconds).

      Specified by:
      getSafetyTimeout in interface PortConfig
      Returns:
      the value of the 'safetyTimeout' property.
    • getStopBits

      public StopBits getStopBits()
      Description copied from interface: PortConfig
      Returns the value of the 'stopBits' property.

      The number of stop bits.

      Specified by:
      getStopBits in interface PortConfig
      Returns:
      the value of the 'stopBits' property.
    • getWriteTimeout

      public int getWriteTimeout()
      Description copied from interface: PortConfig
      Returns the value of the 'writeTimeout' property.

      Write timeout (in milliseconds).

      Specified by:
      getWriteTimeout in interface PortConfig
      Returns:
      the value of the 'writeTimeout' property.
    • toString

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

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

      public boolean _vmf_equals(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(ThreadLocal<Map<eu.mihosoft.vmf.runtime.core.internal.VObjectInternal.EqualsPair,​?>> threadlocalMap)
      Specified by:
      _vmf_setThreadLocalEquals in interface eu.mihosoft.vmf.runtime.core.internal.VObjectInternal
    • clone

      public PortConfig clone()
      Description copied from interface: PortConfig
      Returns a deep clone of this object.
      Specified by:
      clone in interface PortConfig
      Specified by:
      clone in interface ReadOnlyWithName
      Specified by:
      clone in interface eu.mihosoft.vmf.runtime.core.VObject
      Specified by:
      clone in interface WithName
      Overrides:
      clone in class Object
      Returns:
      a deep clone of this object
    • addPropertyChangeListener

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

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

      public PortConfig _vmf_deepCopy(IdentityHashMap<Object,​Object> identityMap)
    • _vmf_shallowCopy

      public PortConfig _vmf_shallowCopy(IdentityHashMap<Object,​Object> identityMap)
    • vmf

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

      public PortConfig asReadOnly()
      Description copied from interface: PortConfig
      Returns a read-only wrapper of 'PortConfig'. Since this model object is immutable this method does not perform any conversion and returns this object in unmodified form.
      Specified by:
      asReadOnly in interface PortConfig
      Specified by:
      asReadOnly in interface ReadOnlyWithName
      Specified by:
      asReadOnly in interface eu.mihosoft.vmf.runtime.core.VObject
      Specified by:
      asReadOnly in interface WithName
      Returns:
      a read-only wrapper of 'PortConfig'
    • _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 String[] _vmf_getSuperTypeNames()
      Specified by:
      _vmf_getSuperTypeNames in interface eu.mihosoft.vmf.runtime.core.internal.VObjectInternal
    • _vmf_getPropertyNames

      public 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 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 Object _vmf_getPropertyValueById(int propertyId)
      Specified by:
      _vmf_getPropertyValueById in interface eu.mihosoft.vmf.runtime.core.internal.VObjectInternal
    • _vmf_getPropertyIdByName

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

      public 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, 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 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 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