Class BasicPatternImpl
- java.lang.Object
-
- com.redhat.parodos.patterndetection.pattern.BasicPatternImpl
-
public class BasicPatternImpl extends Object implements Pattern
An implementation of @see Pattern that will serve most Pattern Detection needs allAreRequiredClues - every @see Clue added to this list needs to be detected for the @see Pattern to be considered detected onlyOneIsRequiredClues - only one @see Clue from this list needs to be detected for the @see Pattern to be considered detected If both onlyOneIsRequiredClues and allAreRequiredClues are configured, then all of the @Clue in allAreRequiredClues must be detected AND one of the @see Clue in the onlyOneIsRequiredClues must be detected- Author:
- Luke Shannon (Github: lshannon)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBasicPatternImpl.Builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkReportexecute(WorkContext workContext)Executes all the Clues in the DESIRED_PATTERNS set in the WorkContextList<Clue>getAllAreRequiredClues()List<Clue>getOnlyOneIsRequiredClues()
-
-
-
Method Detail
-
execute
public WorkReport execute(WorkContext workContext)
Executes all the Clues in the DESIRED_PATTERNS set in the WorkContext
-
getAllAreRequiredClues
public List<Clue> getAllAreRequiredClues()
- Specified by:
getAllAreRequiredCluesin interfacePattern
-
getOnlyOneIsRequiredClues
public List<Clue> getOnlyOneIsRequiredClues()
- Specified by:
getOnlyOneIsRequiredCluesin interfacePattern
-
-