public class ConnectionChecker<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends AbstractValidator<G,A,R> implements MapValidator<G,A,R>
Constructor and Description |
---|
ConnectionChecker(ValidatorPreferences validatorPreferences,
GameObjectMatcher sourceGameObjectMatcher,
GameObjectMatcher sinkGameObjectMatcher,
GameObjectMatcher sink2GameObjectMatcher)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
validateMap(MapModel<G,A,R> mapModel,
ErrorCollector<G,A,R> errorCollector)
Validate a map.
|
getKey, isDefaultEnabled, isEnabled, setEnabled
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getKey, isDefaultEnabled, isEnabled, setEnabled
public ConnectionChecker(@NotNull ValidatorPreferences validatorPreferences, @NotNull GameObjectMatcher sourceGameObjectMatcher, @NotNull GameObjectMatcher sinkGameObjectMatcher, @NotNull GameObjectMatcher sink2GameObjectMatcher)
validatorPreferences
- the validator preferences to usesourceGameObjectMatcher
- the game object matcher for matching
sourcessinkGameObjectMatcher
- the game object matcher for matching sinkssink2GameObjectMatcher
- the game object matcher for matching sinkspublic void validateMap(@NotNull MapModel<G,A,R> mapModel, @NotNull ErrorCollector<G,A,R> errorCollector)
validateMap
in interface MapValidator<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
mapModel
- Map to validateerrorCollector
- Error collector to report errors to