Class RuleBasedGraphStateValidatorImpl<V,E>
- java.lang.Object
-
- science.aist.gtf.graph.validator.impl.RuleBasedGraphStateValidatorImpl<V,E>
-
- Type Parameters:
V
- the type of the decorated vertex valueE
- the type of the decorated edge value
- All Implemented Interfaces:
GraphStateValidator<V,E>
public class RuleBasedGraphStateValidatorImpl<V,E> extends Object implements GraphStateValidator<V,E>
Tests if a given graphState confirms to a list of graph analyzer and their rules
- Since:
- 1.0
- Author:
- Andreas Pointner
-
-
Constructor Summary
Constructors Constructor Description RuleBasedGraphStateValidatorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> void
addAnalyzerRule(GraphAnalyzer<V,E,R> graphAnalyzer, Predicate<R> rule)
boolean
isValidGraphState(GraphStateAccessor<V,E> graphState)
verifies if a given graph state confirms to a given ruleset
-
-
-
Method Detail
-
addAnalyzerRule
public <R> void addAnalyzerRule(GraphAnalyzer<V,E,R> graphAnalyzer, Predicate<R> rule)
-
isValidGraphState
public boolean isValidGraphState(GraphStateAccessor<V,E> graphState)
Description copied from interface:GraphStateValidator
verifies if a given graph state confirms to a given ruleset- Specified by:
isValidGraphState
in interfaceGraphStateValidator<V,E>
- Parameters:
graphState
- the graph state to be verified- Returns:
- to if the graph state is valid
-
-