Package com.anylogic.engine.markup
- java.lang.Object
- com.anylogic.engine.markup.AbstractMarkupAggregator<Owner>
- com.anylogic.engine.markup.AbstractNetwork<ConveyorNode<?>,
- com.anylogic.engine.markup.ConveyorNetwork
- All Implemented Interfaces:
IRouteProvider<ShortestPathData<ConveyorNode<?>,,ConveyorPath<?>>> AggregatableAnimationElement,HasBoundingRectangle,HasLevel,INetwork<ConveyorNode<?>,,ConveyorPath<?>> LevelElement,LevelMarkup,Serializable
public class ConveyorNetwork extends AbstractNetwork<ConveyorNode<?>,ConveyorPath<?>, Agent> implements LevelMarkup, AggregatableAnimationElement, HasBoundingRectangle
- See Also:
- Serialized Form
| Constructor | Description |
|---|---|
ConveyorNetwork | |
ConveyorNetwork |
Deprecated.
deprecated in version 8.5.0, will be removed in the future releases
|
ConveyorNetwork |
Deprecated.
deprecated in version 8.5.0, will be removed in the future releases
|
ConveyorNetwork |
Deprecated.
deprecated in version 8.5.0, will be removed in the future releases
|
| Modifier and Type | Method | Description |
|---|---|---|
void | add |
Adds the spur to the network.
|
void | add |
Adds the station to the network.
|
void | add |
Adds the position on conveyor to the network.
|
void | addAll |
Adds elements to this network
|
static NetworkPort | createPort |
Deprecated.
|
Stream<? extends AbstractMarkup> | elementsInternal() |
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. |
BoundingRectangle | getBoundingRectangle() | |
Class<? extends ExtAgentWithSpatialMetrics> | getCompatibleAgentExtensionClass() |
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. |
ShapeDrawMode | getDrawMode() |
Returns the drawing mode of the shape (where to draw this shape: 2D, 3D or 2D+3D).
If the shape has been created with no-argument constructor, and has no specific limitations (like 2D-only), and drawing mode hasn't yet been set, then it is initialized to default (2D + 3D). |
Level | getLevel() |
Returns the level where this conveyor network is located.
|
double | getPlainDistance |
Straight line distance between two points.
|
List<PositionOnConveyor<?>> | getPositionsOnConveyors() |
Returns the list of position on conveyor elements belonging to this conveyor network.
|
Agent | getSpace() |
Returns the space where the markup element is defined
|
List<ConveyorSpur<?>> | getSplitMerges() |
Deprecated.
will be removed in the next release.
|
List<ConveyorSpur<?>> | getSpurs() |
Returns the list of conveyor spur elements belonging to this conveyor network.
|
List<ConveyorStation<?>> | getStations() |
Returns the list of stations belonging to this conveyor network.
|
double | getZ() |
Returns the base level z coordinate.
|
void | setDrawMode |
Sets the drawing mode of the shape (where to draw this shape: 2D, 3D or 2D+3D).
This method may be called only for shapes created using no-argument constructor (which have no limitations like 2D-only) and only once. |
void | setLevel |
Sets the new level where this conveyor network will be located.
|
void | setZ |
Sets the base level z coordinate.
|
add, add, getDistance, getDistance, getDistance, getDistance, getDistance, getDistance, getDistance, getDistance, getDistance, getDistance, getDistance, getDistance, getDistance, getDistance, getDistance, getDistance, getDistance, getDistance, getDistance, getLength, getNearestNetworkElement, getNearestNetworkElement, getNearestNetworkElement, getNearestNode, getNearestNode, getNearestNode, getNearestNode, getNearestPath, getNearestPath, getNearestPath, getNode, getNodeCount, getPath, getPathCount, getPathData, getPlainDistance, getPosition, getPosition, getPositionAtOffset, getRelatedNetworks, nodes, paths, portspublic ConveyorNetwork(Agent owner, String name)
@Deprecated public ConveyorNetwork(Agent owner, String name, ShapeDrawMode drawMode, double z)
Deprecated.
deprecated in version 8.5.0, will be removed in the future releases
- Parameters:
owner-name-drawMode-z-
@Deprecated public ConveyorNetwork(Agent owner, String name, ShapeDrawMode drawMode, double z, boolean isPublic, boolean visible)
Deprecated.
deprecated in version 8.5.0, will be removed in the future releases
- Parameters:
owner-name-drawMode-z-isPublic-visible-
@Deprecated public ConveyorNetwork(Agent owner, String name, ShapeDrawMode drawMode, double z, boolean isPublic, boolean visible, ConveyorMarkupElement<?>... contents)
Deprecated.
deprecated in version 8.5.0, will be removed in the future releases
- Parameters:
owner-name-drawMode-z-isPublic-visible-contents-
public Level getLevel()
Returns the level where this conveyor network is located.
public void setLevel(Level level)
Sets the new level where this conveyor network will be located.
- Specified by:
setLevelin interfaceLevelElement- Parameters:
level- - the new level
public void setDrawMode(ShapeDrawMode drawMode)
Sets the drawing mode of the shape (where to draw this shape: 2D, 3D or 2D+3D).
This method may be called only for shapes created using no-argument constructor (which have no limitations like 2D-only) and only once. Any subsequent call for a shape having drawing mode already set, will throw error.
This method may be called only for shapes created using no-argument constructor (which have no limitations like 2D-only) and only once. Any subsequent call for a shape having drawing mode already set, will throw error.
- Parameters:
drawMode- where to draw this shape: 2D, 3D or 2D+3D
public ShapeDrawMode getDrawMode()
Returns the drawing mode of the shape (where to draw this shape: 2D, 3D or 2D+3D).
If the shape has been created with no-argument constructor, and has no specific limitations (like 2D-only), and drawing mode hasn't yet been set, then it is initialized to default (2D + 3D).
If the shape has been created with no-argument constructor, and has no specific limitations (like 2D-only), and drawing mode hasn't yet been set, then it is initialized to default (2D + 3D).
public void setZ(double z)
Sets the base level z coordinate. Elements in network have z-coordinates related to this level.
- Parameters:
z- the base level z coordinate
public double getZ()
Returns the base level z coordinate. Elements in network have z-coordinates related to this level.
- Returns:
- the base level z coordinate
public Agent getSpace()
Description copied from interface:
INetworkReturns the space where the markup element is defined
- Specified by:
getSpacein interfaceINetwork<ConveyorNode<?>,ConveyorPath<?>> - Returns:
- the space associated with this element
@AnyLogicInternalAPI public Stream<? extends AbstractMarkup> elementsInternal()
Description copied from class:
AbstractMarkupAggregatorThis method is internal and shouldn't be called by user.
it may be removed/renamed in future.
it may be removed/renamed in future.
- Specified by:
elementsInternalin classAbstractMarkupAggregator<Agent>
public void addAll(ConveyorMarkupElement<?>... elements)
Adds elements to this network
- Parameters:
elements- array or comma separated elements of types:- ConveyorNode
- ConveyorPath
- ConveyorStation
- ConveyorSpur
- PositionOnConveyor
public void add(ConveyorStation<?> element)
Adds the station to the network.
- Parameters:
element- conveyor station, instance of ConveyorStation<?>
public void add(ConveyorSpur<?> element)
Adds the spur to the network.
- Parameters:
element- spur, instance of ConveyorSpur;?>
public void add(PositionOnConveyor<?> element)
Adds the position on conveyor to the network. The network should be uninitialized
- Parameters:
element- position on coveyor, instance of PositionOnConveyor;?>
public List<ConveyorStation<?>> getStations()
Returns the list of stations belonging to this conveyor network.
- Returns:
- Returns the list of stations.
public List<ConveyorSpur<?>> getSpurs()
Returns the list of conveyor spur elements belonging to this conveyor network.
- Returns:
- Returns the list of conveyor spur elements.
@Deprecated public List<ConveyorSpur<?>> getSplitMerges()
Deprecated.
will be removed in the next release. Please use
getSpurs() insteadpublic List<PositionOnConveyor<?>> getPositionsOnConveyors()
Returns the list of position on conveyor elements belonging to this conveyor network.
- Returns:
- Returns the list of position on conveyor elements.
public Class<? extends ExtAgentWithSpatialMetrics> getCompatibleAgentExtensionClass()
Description copied from interface:
INetworkThis method is internal and shouldn't be called by user.
it may be removed/renamed in future.
it may be removed/renamed in future.
- Specified by:
getCompatibleAgentExtensionClassin interfaceINetwork<ConveyorNode<?>,ConveyorPath<?>>
public double getPlainDistance(Point firstPoint, Point secondPoint)
Description copied from interface:
INetworkStraight line distance between two points.
- Specified by:
getPlainDistancein interfaceINetwork<ConveyorNode<?>,ConveyorPath<?>> - Specified by:
getPlainDistancein classAbstractNetwork<ConveyorNode<?>,ConveyorPath<?>, Agent> - Returns:
- distance between two points
@Deprecated public static NetworkPort createPort(Agent owner, ConveyorPath<?> path, PathEndType type)
Deprecated.
Creates and returns a port of type
NetworkPort that will connect this network to the specified path- Parameters:
owner- markup ownerpath- the path that the network will be connected to through the returned porttype- BEGIN or END specifying the starting or ending point of the path- Returns:
- created network port
@AnyLogicInternalAPI public BoundingRectangle getBoundingRectangle()
- Specified by:
getBoundingRectanglein interfaceHasBoundingRectangle