Package eu.mihosoft.devcom.impl
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.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface eu.mihosoft.devcom.PortConfig
PortConfig.BuilderNested classes/interfaces inherited from interface eu.mihosoft.vmf.runtime.core.internal.VObjectInternal
eu.mihosoft.vmf.runtime.core.internal.VObjectInternal.EqualsPairNested classes/interfaces inherited from interface eu.mihosoft.devcom.WithName
WithName.Behavior -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid__vmf_toString(StringBuilder sb, IdentityHashMap<Object, ?> _vmf_fToStringChecker) _vmf_deepCopy(IdentityHashMap<Object, Object> identityMap) booleanList<eu.mihosoft.vmf.runtime.core.Annotation>int[]_vmf_getDefaultValueById(int propertyId) int[]int[]int[]int[]List<eu.mihosoft.vmf.runtime.core.Annotation>_vmf_getPropertyAnnotationsById(int propertyId) int_vmf_getPropertyIdByName(String propertyName) String[]String[]int[]_vmf_getPropertyValueById(int propertyId) String[]eu.mihosoft.vmf.runtime.core.Typeintintboolean_vmf_isSetById(int propertyId) eu.mihosoft.vcollections.VList<eu.mihosoft.vmf.runtime.core.VObject>eu.mihosoft.vcollections.VList<eu.mihosoft.vmf.runtime.core.VObject>void_vmf_setDefaultValueById(int propertyId, Object defaultValue) void_vmf_setThreadLocalEquals(ThreadLocal<Map<eu.mihosoft.vmf.runtime.core.internal.VObjectInternal.EqualsPair, ?>> threadlocalMap) _vmf_shallowCopy(IdentityHashMap<Object, Object> identityMap) voidReturns a read-only wrapper of 'PortConfig'.clone()Returns a deep clone of this object.intReturns the value of the 'baudRate' property.getName()Returns the value of the 'name' property.intReturns the value of the 'numberOfDataBits' property.Returns the value of the 'parityBits' property.intReturns the value of the 'safetyTimeout' property.Returns the value of the 'stopBits' property.intReturns the value of the 'writeTimeout' property.booleanReturns the value of the 'rS485ModeEnabled' property.voidtoString()eu.mihosoft.vmf.runtime.core.VMFvmf()Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface eu.mihosoft.vmf.runtime.core.ReadOnly
asModifiableMethods inherited from interface eu.mihosoft.vmf.runtime.core.internal.VObjectInternal
_vmf_getContainer, _vmf_getMutableObject, _vmf_isReadOnly
-
Field Details
-
_VMF_TYPE_ID
public static final int _VMF_TYPE_ID- See Also:
-
-
Method Details
-
getBaudRate
public int getBaudRate()Description copied from interface:PortConfigReturns the value of the 'baudRate' property.The baud rate used for sending and receiving data.
- Specified by:
getBaudRatein interfacePortConfig- Returns:
- the value of the 'baudRate' property.
-
getName
Description copied from interface:PortConfigReturns the value of the 'name' property.The port name used to identify the port, e.g. 'COM3'.
- Specified by:
getNamein interfacePortConfig- Specified by:
getNamein interfaceReadOnlyWithName- Specified by:
getNamein interfaceWithName- 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:PortConfigReturns the value of the 'numberOfDataBits' property.The number of data bits (usually 8).
- Specified by:
getNumberOfDataBitsin interfacePortConfig- Returns:
- the value of the 'numberOfDataBits' property.
-
getParityBits
Description copied from interface:PortConfigReturns the value of the 'parityBits' property.The number of parity bits.
- Specified by:
getParityBitsin interfacePortConfig- Returns:
- the value of the 'parityBits' property.
-
isRS485ModeEnabled
public boolean isRS485ModeEnabled()Description copied from interface:PortConfigReturns the value of the 'rS485ModeEnabled' property.Determines, whether RS485 mode should be enabled
- Specified by:
isRS485ModeEnabledin interfacePortConfig- Returns:
- the value of the 'rS485ModeEnabled' property.
-
getSafetyTimeout
public int getSafetyTimeout()Description copied from interface:PortConfigReturns the value of the 'safetyTimeout' property.Safety timeout used for opening the port (in milliseconds).
- Specified by:
getSafetyTimeoutin interfacePortConfig- Returns:
- the value of the 'safetyTimeout' property.
-
getStopBits
Description copied from interface:PortConfigReturns the value of the 'stopBits' property.The number of stop bits.
- Specified by:
getStopBitsin interfacePortConfig- Returns:
- the value of the 'stopBits' property.
-
getWriteTimeout
public int getWriteTimeout()Description copied from interface:PortConfigReturns the value of the 'writeTimeout' property.Write timeout (in milliseconds).
- Specified by:
getWriteTimeoutin interfacePortConfig- Returns:
- the value of the 'writeTimeout' property.
-
toString
-
__vmf_toString
- Specified by:
__vmf_toStringin interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
_vmf_equals
- Specified by:
_vmf_equalsin interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
_vmf_hashCode
public int _vmf_hashCode()- Specified by:
_vmf_hashCodein interfaceeu.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_setThreadLocalEqualsin interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
clone
Description copied from interface:PortConfigReturns a deep clone of this object.- Specified by:
clonein interfacePortConfig- Specified by:
clonein interfaceReadOnlyWithName- Specified by:
clonein interfaceeu.mihosoft.vmf.runtime.core.VObject- Specified by:
clonein interfaceWithName- Overrides:
clonein classObject- Returns:
- a deep clone of this object
-
addPropertyChangeListener
- Specified by:
addPropertyChangeListenerin interfaceeu.mihosoft.vmf.runtime.core.ObservableObject
-
removePropertyChangeListener
- Specified by:
removePropertyChangeListenerin interfaceeu.mihosoft.vmf.runtime.core.ObservableObject
-
_vmf_deepCopy
-
_vmf_shallowCopy
-
vmf
public eu.mihosoft.vmf.runtime.core.VMF vmf()- Specified by:
vmfin interfaceeu.mihosoft.vmf.runtime.core.VObject
-
asReadOnly
Description copied from interface:PortConfigReturns 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:
asReadOnlyin interfacePortConfig- Specified by:
asReadOnlyin interfaceReadOnlyWithName- Specified by:
asReadOnlyin interfaceeu.mihosoft.vmf.runtime.core.VObject- Specified by:
asReadOnlyin interfaceWithName- Returns:
- a read-only wrapper of '
PortConfig'
-
_vmf_getType
public eu.mihosoft.vmf.runtime.core.Type _vmf_getType()- Specified by:
_vmf_getTypein interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
_vmf_getTypeId
public int _vmf_getTypeId()- Specified by:
_vmf_getTypeIdin interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
_vmf_getSuperTypeNames
- Specified by:
_vmf_getSuperTypeNamesin interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
_vmf_getPropertyNames
- Specified by:
_vmf_getPropertyNamesin interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
_vmf_getPropertyTypes
public int[] _vmf_getPropertyTypes()- Specified by:
_vmf_getPropertyTypesin interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
_vmf_getPropertyTypeNames
- Specified by:
_vmf_getPropertyTypeNamesin interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
_vmf_getIndicesOfPropertiesWithModelTypes
public int[] _vmf_getIndicesOfPropertiesWithModelTypes()- Specified by:
_vmf_getIndicesOfPropertiesWithModelTypesin interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
_vmf_getIndicesOfPropertiesWithModelElementTypes
public int[] _vmf_getIndicesOfPropertiesWithModelElementTypes()- Specified by:
_vmf_getIndicesOfPropertiesWithModelElementTypesin interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
_vmf_getIndicesOfPropertiesWithModelTypeOrElementTypes
public int[] _vmf_getIndicesOfPropertiesWithModelTypeOrElementTypes()- Specified by:
_vmf_getIndicesOfPropertiesWithModelTypeOrElementTypesin interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
_vmf_getChildrenIndices
public int[] _vmf_getChildrenIndices()- Specified by:
_vmf_getChildrenIndicesin interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
_vmf_getParentIndices
public int[] _vmf_getParentIndices()- Specified by:
_vmf_getParentIndicesin interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
_vmf_getPropertyValueById
- Specified by:
_vmf_getPropertyValueByIdin interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
_vmf_getPropertyIdByName
- Specified by:
_vmf_getPropertyIdByNamein interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
_vmf_getDefaultValueById
- Specified by:
_vmf_getDefaultValueByIdin interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
_vmf_setDefaultValueById
- Specified by:
_vmf_setDefaultValueByIdin interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
_vmf_isSetById
public boolean _vmf_isSetById(int propertyId) - Specified by:
_vmf_isSetByIdin interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
_vmf_getPropertyAnnotationsById
public List<eu.mihosoft.vmf.runtime.core.Annotation> _vmf_getPropertyAnnotationsById(int propertyId) - Specified by:
_vmf_getPropertyAnnotationsByIdin interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
_vmf_getAnnotations
- Specified by:
_vmf_getAnnotationsin interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
_vmf_referencedBy
public eu.mihosoft.vcollections.VList<eu.mihosoft.vmf.runtime.core.VObject> _vmf_referencedBy()- Specified by:
_vmf_referencedByin interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
_vmf_references
public eu.mihosoft.vcollections.VList<eu.mihosoft.vmf.runtime.core.VObject> _vmf_references()- Specified by:
_vmf_referencesin interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-