Package com.anylogic.engine.markup
- Constructor Summary
- Method Summary
- Methods inherited from class com.anylogic.engine.markup.ConveyorPathPart
- Methods inherited from class com.anylogic.engine.markup.ConveyorMarkupElement
- Methods inherited from class com.anylogic.engine.markup.MarkupShape
- Methods inherited from class com.anylogic.engine.markup.AbstractMarkup
- Methods inherited from class java.lang.Object
- Methods inherited from interface com.anylogic.engine.markup.AggregatableAnimationElement
- Methods inherited from interface com.anylogic.engine.markup.INetworkMarkupElement
- Constructor Detail
- Method Detail
- java.lang.Object
-
- com.anylogic.engine.markup.AbstractMarkup
-
- com.anylogic.engine.markup.MarkupShape
-
- com.anylogic.engine.markup.ConveyorMarkupElement<T>
-
- com.anylogic.engine.markup.ConveyorPathPart<T>
-
- com.anylogic.engine.markup.ConveyorStation<T>
- All Implemented Interfaces:
AggregatableAnimationElement
,HasLevel
,INetworkMarkupElement
,SVGElement
,java.io.Serializable
- Direct Known Subclasses:
ConveyorSimpleStation
public abstract class ConveyorStation<T extends Agent> extends ConveyorPathPart<T>
- See Also:
- Serialized Form
ConveyorStation(ConveyorPath<? extends T> conveyor) |
|
ConveyorStation(ConveyorPath<? extends T> conveyor,
double offset,
double lengthInMeters) |
Constructor
|
ConveyorStation(ConveyorPath<? extends T> conveyor,
ShapeDrawMode drawMode,
boolean isPublic,
double offset,
double lengthInMeters) |
Constructor
|
Constructor | 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.
|
double |
getLength(LengthUnits units) |
Returns the length of this element
|
double |
getNearestPoint(Point givenPoint,
Point out) |
Calculates (using the
output object) the point in this space markup element
nearest to the given point. |
Point |
randomPointInside(java.util.Random rng,
Point out) |
Returns the randomly chosen point inside/along the given space markup element.
|
void |
setLength(double length,
LengthUnits units) |
Sets length of this conveyor part in XY-projection, measured in the given units.
|
void |
setNetwork(ConveyorNetwork network) |
Sets the network for this element.
|
Modifier and Type | Method | Description |
---|
getConveyor, getOffset, getOffset, setConveyor, setOffset, setOffset
getLevel, getNetwork
error, getDrawMode, getFullName, getOutsideLevelZ, getPresentable, getSpace, initialize, isClickHandled, isPublic, onClick, remove, setDrawMode, setOwner
discardOwner, executeUserAction, findSVGElement, getName, getSVGId, initializeInternal, isVisible, onAggregatorInitialized, onAggregatorVisibilityChanged, removeSVGFromOwner, resetSVGState, setVisible, updateDynamicProperties, updateDynamicPropertiesStructural, updateSVGProperties
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
postInitialize
getSpace, randomPointInside, randomPointInside, randomPointInside
public ConveyorStation(ConveyorPath<? extends T> conveyor)
public ConveyorStation(ConveyorPath<? extends T> conveyor, double offset, double lengthInMeters)
Constructor
- Parameters:
conveyor
- the conveyoroffset
- offset measured from the beginning of conveyor to the end of this station, in pixels.lengthInMeters
- the length of this station in meters.
public ConveyorStation(ConveyorPath<? extends T> conveyor, ShapeDrawMode drawMode, boolean isPublic, double offset, double lengthInMeters)
Constructor
- Parameters:
conveyor
- the conveyordrawMode
-isPublic
-offset
- offset measured from the beginning of conveyor to the end of this station, in pixels.lengthInMeters
- the length of this station in meters.
public void setNetwork(ConveyorNetwork network)
Description copied from class:
ConveyorMarkupElement
Sets the network for this element. The element should be uninitialized
- Overrides:
setNetwork
in classConveyorMarkupElement<T extends Agent>
- Parameters:
network
- new network
public double getLength(LengthUnits units)
Returns the length of this element
- Parameters:
units
- length units- Returns:
- the length of this element
public void setLength(double length, LengthUnits units)
Sets length of this conveyor part in XY-projection, measured in the given units.
- Parameters:
length
- , measured in the given units
public double getNearestPoint(Point givenPoint, Point out)
Description copied from interface:
INetworkMarkupElement
Calculates (using the
output
object) the point in this space markup element
nearest to the given point. Returns the square of distance to the point.- Parameters:
givenPoint
- given pointout
- the output point to write result to.- Returns:
- the square of distance to the nearest point
public Point randomPointInside(java.util.Random rng, Point out)
Description copied from interface:
INetworkMarkupElement
Returns the randomly chosen point inside/along the given space markup element.
This method utilises the given Random Number Generator.
- Parameters:
rng
- the random number generator.out
- output object to write to, may benull
- Returns:
- the randomly chosen point
public boolean contains(double px, double py)
Description copied from class:
MarkupShape
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)
- Specified by:
contains
in interfaceINetworkMarkupElement
- Specified by:
contains
in classMarkupShape
- Parameters:
px
- the x coordinate relative to this shape's containerpy
- the y coordinate relative to this shape's container- Returns:
true
if the shape contains the point with the given coordinates
-
How can we improve this article?
-