public class Network extends AbstractNetwork<Node,Path,Agent> implements LevelMarkup, AggregatableAnimationElement
Constructor and Description |
---|
Network(Agent owner,
java.lang.String name)
Creates a network with a specified owner and name
|
Network(Agent owner,
java.lang.String name,
ShapeDrawMode drawMode,
double z)
Deprecated.
deprecated in version 8.5.0, will be removed in the future releases. Use
Network(Agent, String) |
Network(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. Use
Network(Agent, String) |
Network(Agent owner,
java.lang.String name,
ShapeDrawMode drawMode,
double z,
boolean isPublic,
boolean visible,
NetworkMarkupElement... markupShapes)
Deprecated.
deprecated in version 8.5.0, will be removed in the future releases. Use
Network(Agent, String) |
Modifier and Type | Method and Description |
---|---|
void |
add(PalletRack palletRack)
Adds a pallet rack to the network.
|
void |
addAll(NetworkMarkupElement... markupShapes)
Adds all arguments to the network
|
static NetworkPort |
createPort(Agent owner,
Path path,
PathEndType type)
Creates
NetworkPort on 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 (either 2D, 3D, or 2D&3D).
|
Level |
getLevel()
Returns the level where this network is located.
|
java.util.List<PalletRack> |
getPalletRacks()
Returns
List of all PalletRack in the network. |
double |
getPlainDistance(Point firstPoint,
Point secondPoint)
|
Agent |
getSpace()
Returns the space where the space markup element is defined
|
double |
getZ()
Returns the z-coordinate of the base level.
|
void |
setDrawMode(ShapeDrawMode drawMode)
Sets the drawing mode of the shape (either 2D, 3D, or 2D&3D).
|
void |
setLevel(Level level)
Sets the new level where this network will be located.
|
void |
setZ(double z)
Sets the z-coordinate of the base level.
|
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 Network(Agent owner, java.lang.String name)
owner
- - the agent to whom this new instance belongsname
- - the name of the network@Deprecated public Network(Agent owner, java.lang.String name, ShapeDrawMode drawMode, double z)
Network(Agent, String)
@Deprecated public Network(Agent owner, java.lang.String name, ShapeDrawMode drawMode, double z, boolean isPublic, boolean visible)
Network(Agent, String)
@Deprecated public Network(Agent owner, java.lang.String name, ShapeDrawMode drawMode, double z, boolean isPublic, boolean visible, NetworkMarkupElement... markupShapes)
Network(Agent, String)
@AnyLogicInternalAPI public java.util.stream.Stream<? extends AbstractMarkup> elementsInternal()
AbstractMarkupAggregator
elementsInternal
in class AbstractMarkupAggregator<Agent>
public void addAll(NetworkMarkupElement... markupShapes)
markupShapes
- - an instance of any of the following classes: Node
, Path
, PalletRack
public void setDrawMode(ShapeDrawMode drawMode)
drawMode
- where to draw this shape: 2D, 3D, or 2D&3Dpublic ShapeDrawMode getDrawMode()
public void setZ(double z)
z
- the z-coordinate of the base levelpublic double getZ()
public void add(PalletRack palletRack)
palletRack
- - a pallet rack to be added to the networkpublic java.util.List<PalletRack> getPalletRacks()
List
of all PalletRack
in the network.public Agent getSpace()
public Level getLevel()
public void setLevel(Level level)
setLevel
in interface LevelElement
level
- - the new levelpublic double getPlainDistance(Point firstPoint, Point secondPoint)
getPlainDistance
in interface INetwork<Node,Path>
getPlainDistance
in class AbstractNetwork<Node,Path,Agent>
@AnyLogicInternalAPI public final java.lang.Class<? extends ExtAgentWithSpatialMetrics> getCompatibleAgentExtensionClass()
INetwork
getCompatibleAgentExtensionClass
in interface INetwork<Node,Path>
public static NetworkPort createPort(Agent owner, Path path, PathEndType type)
NetworkPort
on the specified path. Note, that this network port should be paired with another one for correct behavior.
See MarkupPort.setPairedPort(MarkupPort)
owner
- - the created network port will belong to this agentpath
- - the created network port will be connected to this pathtype
- - determines the location of the specified path's ending point@AnyLogicInternalAPI public BoundingRectangle getBoundingRectangle()
Copyright © AnyLogic North America, LLC. All Rights Reserved.