Class DeviceConfig
java.lang.Object
com.trdp.config.DeviceConfig
Root configuration object representing a TRDP
<device> element.
Contains all configuration for a single TRDP device: bus interfaces (with their telegrams and communication parameters), data set definitions, global communication parameters, service definitions, and mapped device overrides.
Instances are created by TrdpConfig.load(java.nio.file.Path) or
TrdpConfig.load(java.io.InputStream). All list getters return non-null,
unmodifiable lists.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the bus interfaces defined for this device.getComParameterById(long id) Looks up a communication parameter set by its ID (first-found-wins).Returns the global communication parameter sets.getDataSetById(int id) Looks up a data set definition by its ID (first-found-wins).Returns the data set definitions.getDebug()Returns the debug configuration, ornullif not specified.Returns the device-level configuration (memory settings), ornullif not specified.Returns the device host name (required, max 15 characters).Returns the leader device name for redundancy, ornullif not specified.Returns the mapped device overrides.Returns the service-oriented interface definitions.getType()Returns the device type (e.g.toString()
-
Method Details
-
getHostName
Returns the device host name (required, max 15 characters). -
getType
Returns the device type (e.g. "VCU-C"), ornullif not specified. -
getLeaderName
Returns the leader device name for redundancy, ornullif not specified. -
getDeviceConfiguration
Returns the device-level configuration (memory settings), ornullif not specified. -
getDebug
Returns the debug configuration, ornullif not specified. -
getBusInterfaces
Returns the bus interfaces defined for this device. -
getMappedDevices
Returns the mapped device overrides. -
getDataSets
Returns the data set definitions. -
getComParameters
Returns the global communication parameter sets. -
getServices
Returns the service-oriented interface definitions. -
getDataSetById
Looks up a data set definition by its ID (first-found-wins).- Parameters:
id- the data set ID (must be >= 1000 per XSD).- Returns:
- the matching data set, or empty if not found.
-
getComParameterById
Looks up a communication parameter set by its ID (first-found-wins).- Parameters:
id- the com-parameter ID.- Returns:
- the matching parameter set, or empty if not found.
-
toString
-