Class ConnectionError<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.model.validation.errors.ValidationError<G,A,R>
-
- net.sf.gridarta.model.validation.errors.MapValidationError<G,A,R>
-
- net.sf.gridarta.model.validation.errors.ConnectionError<G,A,R>
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ConnectionWithoutSinksError,ConnectionWithoutSourcesError
public abstract class ConnectionError<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends MapValidationError<G,A,R>
Validation for incorrectly connected objects.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable java.lang.StringgetParameter(int id)Returns a parameter string to be used in the error message.-
Methods inherited from class net.sf.gridarta.model.validation.errors.ValidationError
addGameObject, addMapSquare, getGameObjects, getMapModel, getMapSquares, getMessage, toString
-
-
-
-
Constructor Detail
-
ConnectionError
protected ConnectionError(@NotNull @NotNull MapModel<G,A,R> mapModel, int connected, @NotNull @NotNull java.lang.Iterable<G> gameObjects)Creates a new instance.- Parameters:
mapModel- the map on which the error occurredconnected- the erroneous connected valuegameObjects- the erroneous game objects
-
-
Method Detail
-
getParameter
@Nullable public @Nullable java.lang.String getParameter(int id)
Description copied from class:ValidationErrorReturns a parameter string to be used in the error message. It can be accessed with {4+id}.- Specified by:
getParameterin classValidationError<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>- Parameters:
id- the error id- Returns:
- the error string
-
-