net.simplace.util.check.FWCheckHelper
Checks the setting of values and other tasks in the system due to 4 different checking levels.
Main idea of the levels is explained in FWCheckHelper.CHECK_LEVEL.
public class FWCheckHelper {
// Public Constructors
public FWCheckHelper(FWCheckHelper.CHECK_LEVEL aLevel, String
aCustomCheckerClassName, FWSimSession aSession);
// Public Instance Methods public Number
checkLimits(
FWSimVariable aSource, Number aValue, Number aMin,
Number aMax) throws
SimValueOutOfRangeException;
Returns false if aValue is NaN or outside limits.
Limits that are
null are ignored.
returns if limits are checked valid
- if level < LAZY no check is performed (return true)
public boolean
checkResource(Map aResourceCreators,
FWSimVarMap aVarMap, Map
aResourcesCacheMap);
public boolean checkOnlyMode(String aSimulationID);
public boolean
checkParametersInScript(Collection aAllowedFields, Collection
aForbiddenFields, String aJexlScript,
FWSimFieldContainer aSource);
Returns false if the content type makes the variable write protected
- aAllowedFields
- aForbiddenFields
- aJexlScript
- aContentType
- aSource
returns if check is valid
- if level < LAZY no check is performed (return true)
public void finalize(); // Overrides java.lang.Object
// Inner Classes
public static final class FWCheckHelper.CHECK_LEVEL extends java.lang.Enum
}
Returned by: net.simplace.simulation.FWSimSession.getChecker()