public class PedFlowStatistics extends AbstractGroundMarkup implements GroundMarkup
Constructor and Description |
---|
PedFlowStatistics() |
PedFlowStatistics(Agent owner,
ShapeDrawMode drawMode,
boolean isPublic,
double sx,
double sy,
double ex,
double ey,
FlowStatisticsDirection direction,
java.awt.Color color) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(double px,
double py)
Test if the shape contains the point with the given coordinates (relative
to this shape's container, i.e. in the same system with the coordinates
of this shape, x and y)
|
long |
countPeds()
Returns total number of pedestrians passed through this line
|
java.awt.Color |
getColor()
Returns the color of the markup element, or
null if markup element has no color |
FlowStatisticsDirection |
getDirection() |
double |
getEndX()
Returns the x coordinate of the end point
|
double |
getEndY()
Returns the y coordinate of the start point
|
double |
getStartX()
Returns the x coordinate of the start point
|
double |
getStartY()
Returns the y coordinate of the start point
|
double |
intensity()
Returns the average pedestrian flow intensity on the line,
measured in pedestrians per hour per meter
|
void |
onDestroy() |
void |
reset()
Resets the average traffic and intensity.
|
void |
setColor(java.awt.Color color)
Sets the color of the markup element.
|
void |
setDataSource(PedFlowStatisticsDataSource dataSource) |
void |
setDirection(FlowStatisticsDirection direction) |
void |
setEndPoint(double x,
double y)
Sets the coordinates of the end point
|
void |
setStartPoint(double x,
double y)
Sets the coordinates of the start point
|
double |
traffic()
Returns the average of traffic flow statistics through the line,
measured in pedestrians per hour
|
getDrawMode, getGround
error, getPresentable, getSpace, initialize, isClickHandled, onClick, setDrawMode, setOwner
executeUserAction, findSVGElement, getName, getSVGId, isVisible, resetSVGState, setVisible, updateDynamicProperties, updateSVGProperties
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getGround
public PedFlowStatistics()
public PedFlowStatistics(Agent owner, ShapeDrawMode drawMode, boolean isPublic, double sx, double sy, double ex, double ey, FlowStatisticsDirection direction, java.awt.Color color)
public final double getStartX()
public final double getStartY()
public final double getEndX()
public final double getEndY()
public void setStartPoint(double x, double y)
x
- the x coordinate of the start pointy
- the y coordinate of the start pointpublic void setEndPoint(double x, double y)
x
- the x coordinate of the end pointy
- the y coordinate of the end pointpublic FlowStatisticsDirection getDirection()
public void setDirection(FlowStatisticsDirection direction)
public void setDataSource(PedFlowStatisticsDataSource dataSource)
@AnyLogicInternalCodegenAPI public void onDestroy()
public double traffic()
public double intensity()
public void reset()
public long countPeds()
public void setColor(java.awt.Color color)
color
- the new color, null
= do not draw the markup elementpublic java.awt.Color getColor()
null
if markup element has no colorpublic boolean contains(double px, double py)
MarkupShape
contains
in class MarkupShape
px
- the x coordinate relative to this shape's containerpy
- the y coordinate relative to this shape's containertrue
if the shape contains the point with the given
coordinatesCopyright © AnyLogic North America, LLC. All Rights Reserved.