public class RoadblockPolygonDescription
extends java.lang.Object
| Constructor and Description |
|---|
RoadblockPolygonDescription(long id,
java.util.List<Coordinate> polygonCoordinates,
boolean ingoing,
boolean outgoing,
int emergencyClass,
java.util.Date startDate,
java.util.Date endDate)
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.util.List<Coordinate> |
getCoordinates()
Returns the coordinate of the road block object
|
java.util.Date |
getEndDate()
Returns the date until which the roadblock is valid
|
long |
getId()
Returns the id of the road block object
|
int |
getRoadBlockPassageClass()
Returns the minimum class to ignore this roadblock
|
java.util.Date |
getStartDate()
Returns the date from which the roadblock is valid
|
int |
hashCode() |
boolean |
isIngoing()
Returns the flag that indicates if all edges leading in the polygon should be closed
|
boolean |
isOutgoing()
Returns the flag that indicates if all edges leading out of the polygon should be closed
|
static java.util.List<RoadblockPolygonDescription> |
parseGeoJson(java.lang.String geoJson)
Parse a
List of RoadblockDescriptions from a string that has the format, that would be created by the intent builder RoadblockIntentBuilder |
java.lang.String |
toString() |
public RoadblockPolygonDescription(long id,
java.util.List<Coordinate> polygonCoordinates,
boolean ingoing,
boolean outgoing,
int emergencyClass,
java.util.Date startDate,
java.util.Date endDate)
id - The unique id of this roadblock polygon that can be reused to update its properties.
If another roadblock intent with the same id is executed, it will override the previous roadblock propertiespolygonCoordinates - The list of coordinates as latitude/longitude pairsingoing - Flag that indicates if all edges leading in the polygon should be closedoutgoing - Flag that indicates if all edges leading out of the polygon should be closedemergencyClass - The emergency class up to which the road block is effectivestartDate - The instant from which the road block is valid.
May be null to signify that there is no dedicated startendDate - The instant to which the road block is valid.
May be null to signify that the road block does not run outpublic java.lang.String toString()
toString in class java.lang.Objectpublic static java.util.List<RoadblockPolygonDescription> parseGeoJson(java.lang.String geoJson)
List of RoadblockDescriptions from a string that has the format, that would be created by the intent builder RoadblockIntentBuildergeoJson - the stringpublic long getId()
public java.util.List<Coordinate> getCoordinates()
public java.util.Date getStartDate()
public java.util.Date getEndDate()
public boolean isIngoing()
public boolean isOutgoing()
public int getRoadBlockPassageClass()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object