Package de.bsvrz.pua.prot.functions
Class IsState
- java.lang.Object
-
- de.bsvrz.pua.prot.functions.UnaryPredicate
-
- de.bsvrz.pua.prot.functions.IsState
-
- All Implemented Interfaces:
ExpressionInterface
public class IsState extends UnaryPredicate implements ExpressionInterface
Implementiert die PuA-Funktion `istZustand()`, die prüft, ob das Argument ein Zustandswert einer Aufzählung ist.
-
-
Constructor Summary
Constructors Constructor Description IsState()
-
Method Summary
Modifier and Type Method Description java.lang.String
getFunctionName()
Liefert den Namen der Funktion.protected boolean
getResult(ExpressionResultAndState argumentValue)
Bestimmt das Ergebnis der PuA-Funktion abhängig vom Argumentwert.-
Methods inherited from class de.bsvrz.pua.prot.functions.UnaryPredicate
evaluate, getResultType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.bsvrz.pua.prot.functions.ExpressionInterface
evaluate, getResultType
-
-
-
-
Method Detail
-
getResult
protected boolean getResult(ExpressionResultAndState argumentValue)
Description copied from class:UnaryPredicate
Bestimmt das Ergebnis der PuA-Funktion abhängig vom Argumentwert.- Specified by:
getResult
in classUnaryPredicate
- Parameters:
argumentValue
- Wert des Arguments- Returns:
- Ergebnis der PuA-Funktion
-
getFunctionName
public java.lang.String getFunctionName()
Description copied from interface:ExpressionInterface
Liefert den Namen der Funktion. Die Methode sollte von einer Implementierung überschrieben werden und den im Skript verwendeten Namen der Funktion zurückliefern. Die Default-Implementierung liefert den Namen der Klasse, die die Funktion implementiert.- Specified by:
getFunctionName
in interfaceExpressionInterface
- Returns:
- Name der Funktion
-
-