net.simplace.sim.transformers.MissingDataTransformer
Fills missing datasets. Takes for every null value the last non-null value from the preceding data.
The input string "rainfield" indicates which column is rain data and should be set to zero when missing
instead of being repeated (which would could cause huge amounts of rainfall).
public class MissingDataTransformer extends
net.simplace.sim.io.resources.FWSimResourceTransformer {
// Public Constructors
public MissingDataTransformer(FWSimSession aSession, Element
aResourceElement, Integer aOrderNumber);
public MissingDataTransformer(FWSimSession aSession, Integer aOrderNumber);
// Public Instance Methods public HashMap createVariables(); // Defines
net.simplace.sim.io.FWSimIOAdapter
public FWSimResourceCache getData(FWSimVarMap aVarMap)
throws MissingSimResourceException; // Defines
net.simplace.sim.io.resources.FWSimInputAdapter
standard method from outside
public FWSimResourceCache
getData(FWSimVarMap aVarMap, FWSimResourceCache
aResourceCache) throws MissingSimResourceException;
used by test cases
- aVarMap
variable map
- aResourceCache
Cached resources (soil data)
returns delivered new data from transformer
public FWSimResourceCache
fixMissingData(String aRainField, String
aProjectID, FWSimResourceCache aCache)
throws MissingSimResourceException;
- aRainField
- aProjectID
- aCache
returns the new created and transformed {@link FWSimResourceCache}
public void updateFields(FWObservable aObservable);
// Defines net.simplace.sim.io.resources.FWSimResourceTransformer
}
Hierarchy: java.lang.Object - net.simplace.sim.io.FWSimIOAdapter (net.simplace.sim.util.FWSimFieldContainer) - net.simplace.sim.io.resources.FWSimInputAdapter - net.simplace.sim.io.resources.FWSimResourceTransformer - MissingDataTransformer