@Entity
public class Zone
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Zone.ZonePK
The private key wrapper for zone
|
Constructor and Description |
---|
Zone() |
Modifier and Type | Method and Description |
---|---|
MonitoredArea |
getArea()
Returns the area the zone belongs to
|
java.util.List<Point2D> |
getCameraVertices()
Returns the coordinates of the zone cameraVertices in the camera's field of view
|
java.lang.String |
getName()
Returns the name of the zone
|
PolygonReal2D |
getWorldVertices()
Returns the coordinates of the zone cameraVertices in the world
|
java.lang.Integer |
getZoneNumber()
Returns the unique identifier of the zone within its area
|
boolean |
isActive()
Returns true if the zone is still in use, false otherwise
|
void |
setActive(boolean active)
Changes the indication whether or not the zone is still in use
|
void |
setArea(MonitoredArea area)
Changes the area the zone belongs to
|
void |
setCameraVertices(java.util.List<Point2D> cameraVertices)
Changes the coordinates of the zone cameraVertices in the camera's field of view
|
void |
setName(java.lang.String name)
Changes the name of the zone
|
void |
setWorldVertices(PolygonReal2D worldVertices)
Changes the coordinates of the zone cameraVertices in the world
|
void |
setZoneNumber(java.lang.Integer zoneNumber)
Changes the unique identifier of the zone within its area
|
public java.lang.Integer getZoneNumber()
public void setZoneNumber(java.lang.Integer zoneNumber)
zoneNumber
- the new unique identifier of the zone within its areapublic MonitoredArea getArea()
public void setArea(MonitoredArea area)
area
- the new area the zone belongs topublic PolygonReal2D getWorldVertices()
public void setWorldVertices(PolygonReal2D worldVertices)
worldVertices
- the new coordinates of the zone cameraVertices in the worldpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- the new name of the zonepublic java.util.List<Point2D> getCameraVertices()
public void setCameraVertices(java.util.List<Point2D> cameraVertices)
cameraVertices
- the coordinates of the zone cameraVertices in the camera's field of viewpublic boolean isActive()
public void setActive(boolean active)
active
- true if the zone is still in use, false otherwise