public abstract class ModelCondition extends ModelComponent
true
whenever the model complies to the condition.Constructor and Description |
---|
ModelCondition(Model owner,
java.lang.String name,
boolean showInTrace,
java.lang.Object... args)
Constructs a ModelCondition with the given name and parameters for trace
files.
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
check()
Returns a boolean showing whether the model complies to the
condition tested by this method or not.
|
java.lang.Object[] |
getConstructArguments() |
boolean |
hasPrimitiveArguments() |
current, currentEntity, currentEntityAll, currentEvent, currentModel, currentSimProcess, debugIsOn, debugOff, debugOn, getModel, isExperimentCompatible, isModelCompatible, presentTime, sendDebugNote, sendMessage, sendTraceNote, sendWarning, skipTraceNote, skipTraceNote, traceIsOn, traceOff, traceOn
getName, getQuotedName, toString
public ModelCondition(Model owner, java.lang.String name, boolean showInTrace, java.lang.Object... args)
owner
- Model : The main model this condition is associated toname
- java.lang.String : The name of this conditionshowInTrace
- boolean : Flag for showing this condition in trace-files. Set
it to true
if model should show up in trace,
false
if model should not be shown in trace.args
- Object... : Arguments to pass to the condition (can be omitted)public boolean hasPrimitiveArguments()
public java.lang.Object[] getConstructArguments()
public abstract boolean check()
true
, if the model conforms
to the condition, false
otherwise.