Package eu.iv4xr.framework
Class Iv4xrEDSL
java.lang.Object
eu.iv4xr.framework.Iv4xrEDSL
Provide a set of convenience static methods.
- Author:
- wish
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic <State> GoalStructureassertTrue_(TestAgent ta, String assertionFamilyName, String assertionInfo, Predicate<State> predicate)A Goal that when selected, will cause the agent to check the given predicate.assertTrue_(String assertionFamilyName, String assertionInfo, boolean assertion)Check a boolean expression, if it is true then produce a positive VerdictEvent, and else a negative VerdictEvent.static TestGoalCreate a blank instance ofTestGoalwith the given name.static TestGoalCreate a blank instance ofTestGoalwith the given name, and linking it to the given test-agent.
- 
Constructor Details- 
Iv4xrEDSLpublic Iv4xrEDSL()
 
- 
- 
Method Details- 
testgoalCreate a blank instance ofTestGoalwith the given name.
- 
testgoalCreate a blank instance ofTestGoalwith the given name, and linking it to the given test-agent.
- 
assertTrue_public static ObservationEvent.VerdictEvent assertTrue_(String assertionFamilyName, String assertionInfo, boolean assertion)Check a boolean expression, if it is true then produce a positive VerdictEvent, and else a negative VerdictEvent.- Parameters:
- assertionFamilyName- a text to classify the asserting as belonging to some category, if any.
- assertionInfo- some info text on what the property is being checked.
- assertion- the boolean expression to check.
 
- 
assertTrue_public static <State> GoalStructure assertTrue_(TestAgent ta, String assertionFamilyName, String assertionInfo, Predicate<State> predicate)A Goal that when selected, will cause the agent to check the given predicate.
 
-