A TF very similar to BackupSelector but that does not take into account the operational state of the inputs as it copes with relocation instead of duplication for which only the validity is to be considered.
One and only one input is expected to be valid at a given point in time.
The TF expects at least 2 inputs, each of which represent one of the possible place of relocation. None of the inputs is more important than the others. The TF does not make any assumption of the type of the inputs neither on thier values because they are not relevant. For consistency as all the inputs refer to the same monitor point, it is reasonable to expect that all of them have the same type regardless of what it is.
BackupSelector aims to select one input that is produced by replicated plugins that monitors the same device with different meanings so that if one fails, one of the other provides the information. RelocationSelector instead aims to select one input that is produce by only one of the inputs for example as consequence of relocation. The difference with BackupSelector is that one and only one input is expected to be valid at a given point in time.
Value parameters
cEleId:
The id of the ASCE
cEleRunningId:
the running ID of the ASCE
props:
The properties for the executor
validityTimeFrame:
The time frame (msec) to invalidate monitor points
This method transparently returns a value from the passed ID and instance.
This method transparently returns a value from the passed ID and instance.
When an input is not templated, neither a template instance, then its value cabn be directly retrieved from the map of the inputs passed to [#eval]. But if the imput is templated or a templated instance then this method must be used.
If the ASCE is generated out of a template, its inputs can or cannot be generated out of the same template. In the latter, their identifiers must be enriched with the number of the instance of the ASCE. For templated inputs the number of the instance is not needed because it is the same instance number of the ASCE and it is known to the transfer function. The case of templated input instances is different because their instance number is defined in the configuration of the ASCE and not known in the transfer function so it must be esplicity passed by the caller.
For normal and templated inputs, the instance is empty. For templated inputs the instance can be passed if it is teh same of the ASCE. For templated input instances the instance number is required.
This method must be used also to get templated input instances from non templated ASCEs.
Value parameters
id
The (non templated) identifier of the value
inputs
the map of the inputs
instance
the optional instance nummber for templated input instances, not required for other cases
Attributes
Returns
the IASValue of the given ID, or None if not found in the Map