Class ModelScaler.Composite
java.lang.Object
kr.toxicity.model.api.tracker.ModelScaler.Composite
- All Implemented Interfaces:
ModelScaler
- Enclosing interface:
ModelScaler
Implementation of a composite scaler.
- Since:
- 1.15.2
-
Nested Class Summary
Nested classes/interfaces inherited from interface ModelScaler
ModelScaler.Builder, ModelScaler.BuiltInDeserializer, ModelScaler.Composite, ModelScaler.Deserializer, ModelScaler.Getter -
Field Summary
Fields inherited from interface ModelScaler
DESERIALIZER -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ModelScaler
composite, multiply, serialize
-
Constructor Details
-
Composite
public Composite()
-
-
Method Details
-
name
Description copied from interface:ModelScalerReturns the name of this scaler type.- Specified by:
namein interfaceModelScaler- Returns:
- the name
-
scale
Description copied from interface:ModelScalerCalculates the scale for a given tracker.- Specified by:
scalein interfaceModelScaler- Parameters:
tracker- the tracker- Returns:
- the calculated scale factor
-
data
public com.google.gson.JsonElement data()Description copied from interface:ModelScalerReturns the configuration data for this scaler as a JSON element.- Specified by:
datain interfaceModelScaler- Returns:
- the data, or null if none
-