public class ConveyorNetwork extends AbstractNetwork<ConveyorNode<?>,ConveyorPath<?>,Agent> implements LevelMarkup, AggregatableAnimationElement
Constructor and Description |
---|
ConveyorNetwork(Agent owner,
java.lang.String name) |
ConveyorNetwork(Agent owner,
java.lang.String name,
ShapeDrawMode drawMode,
double z)
Deprecated.
deprecated in version 8.5.0, will be removed in the future releases
|
ConveyorNetwork(Agent owner,
java.lang.String name,
ShapeDrawMode drawMode,
double z,
boolean isPublic,
boolean visible)
Deprecated.
deprecated in version 8.5.0, will be removed in the future releases
|
ConveyorNetwork(Agent owner,
java.lang.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
|
Modifier and Type | Method and Description |
---|---|
void |
add(ConveyorSpur<?> element)
Adds the spur to the network.
|
void |
add(ConveyorStation<?> element)
Adds the station to the network.
|
void |
add(PositionOnConveyor<?> element)
Adds the position on conveyor to the network.
|
void |
addAll(ConveyorMarkupElement<?>... elements)
Adds elements to this network
|
static NetworkPort |
createPort(Agent owner,
ConveyorPath<?> path,
PathEndType type)
Creates and returns a port of type
NetworkPort that will connect this network to the specified path |
java.util.stream.Stream<? extends AbstractMarkup> |
elementsInternal()
This method is internal and shouldn't be called by user.
|
BoundingRectangle |
getBoundingRectangle() |
java.lang.Class<? extends ExtAgentWithSpatialMetrics> |
getCompatibleAgentExtensionClass()
This method is internal and shouldn't be called by user.
|
ShapeDrawMode |
getDrawMode()
Returns the drawing mode of the shape (where to draw this shape: 2D, 3D or 2D+3D).
|
Level |
getLevel()
Returns the level where this conveyor network is located.
|
double |
getPlainDistance(Point firstPoint,
Point secondPoint)
Straight line distance between two points.
|
java.util.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
|
java.util.List<ConveyorSpur<?>> |
getSplitMerges()
Deprecated.
will be removed in the next release. Please use
getSpurs() instead |
java.util.List<ConveyorSpur<?>> |
getSpurs()
Returns the list of conveyor spur elements belonging to this conveyor network.
|
java.util.List<ConveyorStation<?>> |
getStations()
Returns the list of stations belonging to this conveyor network.
|
double |
getZ()
Returns the base level z coordinate.
|
void |
setDrawMode(ShapeDrawMode drawMode)
Sets the drawing mode of the shape (where to draw this shape: 2D, 3D or 2D+3D).
|
void |
setLevel(Level level)
Sets the new level where this conveyor network will be located.
|
void |
setZ(double z)
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, ports
error, getName, getOwner, initializeInternal, isVisible, onAggregatorVisibilityChanged, setVisible
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeInternal, onAggregatorVisibilityChanged, postInitialize
public ConveyorNetwork(Agent owner, java.lang.String name)
@Deprecated public ConveyorNetwork(Agent owner, java.lang.String name, ShapeDrawMode drawMode, double z)
owner
- name
- drawMode
- z
- @Deprecated public ConveyorNetwork(Agent owner, java.lang.String name, ShapeDrawMode drawMode, double z, boolean isPublic, boolean visible)
owner
- name
- drawMode
- z
- isPublic
- visible
- @Deprecated public ConveyorNetwork(Agent owner, java.lang.String name, ShapeDrawMode drawMode, double z, boolean isPublic, boolean visible, ConveyorMarkupElement<?>... contents)
owner
- name
- drawMode
- z
- isPublic
- visible
- contents
- public Level getLevel()
public void setLevel(Level level)
setLevel
in interface LevelElement
level
- - the new levelpublic void setDrawMode(ShapeDrawMode drawMode)
drawMode
- where to draw this shape: 2D, 3D or 2D+3Dpublic ShapeDrawMode getDrawMode()
public void setZ(double z)
z
- the base level z coordinatepublic double getZ()
public Agent getSpace()
INetwork
getSpace
in interface INetwork<ConveyorNode<?>,ConveyorPath<?>>
@AnyLogicInternalAPI public java.util.stream.Stream<? extends AbstractMarkup> elementsInternal()
AbstractMarkupAggregator
elementsInternal
in class AbstractMarkupAggregator<Agent>
public void addAll(ConveyorMarkupElement<?>... elements)
elements
- array or comma separated elements of types:
public void add(ConveyorStation<?> element)
element
- conveyor station, instance of ConveyorStation<?>public void add(ConveyorSpur<?> element)
element
- spur, instance of ConveyorSpur;?>public void add(PositionOnConveyor<?> element)
element
- position on coveyor, instance of PositionOnConveyor;?>public java.util.List<ConveyorStation<?>> getStations()
public java.util.List<ConveyorSpur<?>> getSpurs()
@Deprecated public java.util.List<ConveyorSpur<?>> getSplitMerges()
getSpurs()
insteadpublic java.util.List<PositionOnConveyor<?>> getPositionsOnConveyors()
public java.lang.Class<? extends ExtAgentWithSpatialMetrics> getCompatibleAgentExtensionClass()
INetwork
getCompatibleAgentExtensionClass
in interface INetwork<ConveyorNode<?>,ConveyorPath<?>>
public double getPlainDistance(Point firstPoint, Point secondPoint)
INetwork
getPlainDistance
in interface INetwork<ConveyorNode<?>,ConveyorPath<?>>
getPlainDistance
in class AbstractNetwork<ConveyorNode<?>,ConveyorPath<?>,Agent>
public static NetworkPort createPort(Agent owner, ConveyorPath<?> path, PathEndType type)
NetworkPort
that will connect this network to the specified pathowner
- 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@AnyLogicInternalAPI public BoundingRectangle getBoundingRectangle()
Copyright © AnyLogic North America, LLC. All Rights Reserved.