public class PolygonalDomain extends GeometricShapeDomain
GeometricShapeVariables.geomcoordinatesdefaultValueChoiceFunction, logger, myVariable, valueChoiceFunctions| Modifier | Constructor and Description |
|---|---|
protected |
PolygonalDomain(Variable v) |
|
PolygonalDomain(Variable v,
com.vividsolutions.jts.geom.Coordinate[] coord)
Create a
PolygonalDomain for a variable given a coordinate. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsPoint(com.vividsolutions.jts.geom.Coordinate point)
Check whether this polygon contains a given point.
|
protected void |
updateGeometry() |
getGeometry, getShapeType, toStringcompareTo, isInstantiated, setCoordinateschooseValue, chooseValue, getValueChoiceFunctions, getVariable, registerValueChoiceFunction, removeValueChoiceFunctions, setDefaultValueChoiceFunctionprotected PolygonalDomain(Variable v)
public PolygonalDomain(Variable v, com.vividsolutions.jts.geom.Coordinate[] coord)
PolygonalDomain for a variable given a coordinate.v - The variable of which this object represents the domain.coord - The coordinates to be used for creating this PolygonalDomain.public boolean containsPoint(com.vividsolutions.jts.geom.Coordinate point)
point - The coordinates specifying the point to check.true this PolygonalDomain contains this point.protected void updateGeometry()
updateGeometry in class GeometricShapeDomain