net.simplace.client.simulation.lap.transformer.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.simulation.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.simulation.io.FWSimIOAdapter


public FWSimResourceCache getData(FWSimVarMap aVarMap)
throws MissingSimResourceException; // Defines
net.simplace.simulation.io.resources.FWSimInputAdapter


standard method from outside
public FWSimResourceCache getData(FWSimVarMap aVarMap, FWSimResourceCache
aResourceCache) throws MissingSimResourceException;

used by test cases
returns delivered new data from transformer
public FWSimResourceCache fixMissingData(String aRainField, String
aProjectID, FWSimResourceCache aCache)
throws MissingSimResourceException;


returns the new created and transformed {@link FWSimResourceCache}
public void updateFields(FWObservable aObservable);
// Defines
net.simplace.simulation.io.resources.FWSimResourceTransformer




}



Hierarchy: java.lang.Object - net.simplace.simulation.io.FWSimIOAdapter (net.simplace.simulation.util.FWSimFieldContainer) - net.simplace.simulation.io.resources.FWSimInputAdapter - net.simplace.simulation.io.resources.FWSimResourceTransformer - MissingDataTransformer