Package org.eso.ias.asce.transfer
Class IasIOJ<T>
java.lang.Object
org.eso.ias.asce.transfer.IasIOJ<T>
The java countr part of the scala IasIO, that is
the view of an InOut for the TF
IasIOJ exposes only the InOut's methods that can be
invoked by the TF hiding the methods meant for the
internals of the IAS.
The IasIo reduces the risk of errors from misuse from the
TF and simplify the API hiding scala details.
IasIo is immutable.
- Author:
- acaproni
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetId()
getMode()
getProps()
The properties of the monitor pointgetType()
The validity without taking times into account.getValue()
Th eproduction timestamp of the IASIO independently if it has been produced by a plugin, a DASU or a CORE toolsetValidityConstraint
(Set<String> constraint) Set the validity constraints to the passed set of IDs of inputs.updateMode
(OperationalMode newMode) Update the mode of the monitor pointupdateProps
(Map<String, String> additionalProps) Return a new IasIO with the passed additional properties.updateValue
(T newValue) Update the value of a IASIOvalidityOfInputByTime
(long threshold) The validity of an input taking times into account
-
Constructor Details
-
IasIOJ
Constructor- Parameters:
inOut
- The InOut to delegate
-
-
Method Details
-
updateMode
Update the mode of the monitor point- Parameters:
newMode
- : The new mode of the monitor point
-
updateValue
Update the value of a IASIO- Parameters:
newValue
- : The new value of the IASIO- Returns:
- A new InOut with updated value
-
setValidityConstraint
Set the validity constraints to the passed set of IDs of inputs. The passed set contains the IDs of the inputs that the core must be consider when evaluating the validity of the output. The core returns an error if at least one of the ID is not an input to the ASCE where the TF runs: in this case a message is logged and the TF will not be run again. To remove the constraints, the passed set must be empty- Parameters:
constraint
- the constraint the constraints (can be null)
-
updateProps
Return a new IasIO with the passed additional properties.- Parameters:
additionalProps
- additional properties- Returns:
- a new IasIOJ with the passed additional properties
-
getType
- Returns:
- the type of the monitor point
-
getId
- Returns:
- the identifier of the monitor point
-
getFullrunningId
- Returns:
- the full running identifier of the monitor point
-
productionTStamp
Th eproduction timestamp of the IASIO independently if it has been produced by a plugin, a DASU or a CORE tool- Returns:
- The point in time when this monitor point has been produced by the DASU
-
getProps
The properties of the monitor point- Returns:
- the (unmodifiable) properties
-
getValue
- Returns:
- the actual value of the monitor point (can be
null
)
-
getMode
- Returns:
- the operational mode
-
getValidity
The validity without taking times into account.- Returns:
- the validity
-
validityOfInputByTime
The validity of an input taking times into account- Returns:
- the validity by tim
-
getValidityConstraints
- Returns:
- the validity constraints
-