Class SignalDeriver
- All Implemented Interfaces:
Mapper<List<Double>,,IOSignalPiece<List<Double>>, List<Double>, IOSignalPiece<List<Double>>> Mapper.SynchronousMapper<List<Double>,,IOSignalPiece<List<Double>>, List<Double>, IOSignalPiece<List<Double>>> SULMapper<List<Double>,IOSignalPiece<List<Double>>, List<Double>, IOSignalPiece<List<Double>>>
This class implements the SULMapper interface to provide signal derivation functionality. It takes concrete input signals and passes them through unchanged, while for output signals, it uses a SignalMapper to derive additional signals from the concrete I/O signal piece.
When composed with SignalAdapter, it provides the same functionality as NumericSULMapper.
- Author:
- Masaki Waga <masakiwaga@gmail.com>
-
Nested Class Summary
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMaps a concrete input signal to itself (pass-through).mapOutput(IOSignalPiece<List<Double>> concreteIO) Maps a concrete IOSignalPiece to an IOSignalPiece with derived signals.static SignalDeriverConstructs aSignalDeriverfrom extended signal-mapper definitions.static SignalDeriverparseSimple(List<String> mapperDefinitions) Constructs aSignalDeriverfrom simple signal-mapper definitions.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.learnlib.sul.SULMapper
canFork, fork, mapUnwrappedException, mapWrappedException
-
Field Details
-
sigMap
-
-
Constructor Details
-
SignalDeriver
Constructor for SignalDeriver.- Parameters:
sigMap- The SignalMapper for deriving additional signals.
-
-
Method Details
-
parse
Constructs aSignalDeriverfrom extended signal-mapper definitions.The given definitions are parsed by
ExtendedSignalMapper.parse(List)and the resulting mapper is used to create the returned deriver.- Parameters:
mapperDefinitions- signal-mapper definitions to parse with the extended parser- Returns:
- a
SignalDeriverconfigured with the parsedExtendedSignalMapper
-
parseSimple
Constructs aSignalDeriverfrom simple signal-mapper definitions.The given definitions are parsed by
SimpleSignalMapper.parse(List)and the resulting mapper is used to create the returned deriver.- Parameters:
mapperDefinitions- signal-mapper definitions to parse with the simple parser- Returns:
- a
SignalDeriverconfigured with the parsed simpleSignalMapper
-
mapInput
Maps a concrete input signal to itself (pass-through). -
mapOutput
Maps a concrete IOSignalPiece to an IOSignalPiece with derived signals.This method takes the original IOSignalPiece, derives additional signals using the SignalMapper, and returns a new IOSignalPiece with the derived signals.
-