Package com.anylogic.engine.markup
- Field Summary
- Constructor Summary
- Method Summary
- Methods inherited from class com.anylogic.engine.markup.Node
- Methods inherited from class com.anylogic.engine.markup.NetworkMarkupElement
- 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.AbstractPositionalMarkup
- Methods inherited from interface com.anylogic.engine.markup.AggregatableAnimationElement
- Methods inherited from interface com.anylogic.engine.markup.AnimationStaticLocationProvider
- Methods inherited from interface com.anylogic.engine.markup.HasLevel
- Methods inherited from interface com.anylogic.engine.markup.material_handling.IMaterialMarkupLibraryDescriptor
- Methods inherited from interface com.anylogic.engine.markup.INetworkMarkupElement
- Methods inherited from interface com.anylogic.engine.markup.INode
- Methods inherited from interface com.anylogic.engine.markup.LevelElement
- Methods inherited from interface com.anylogic.engine.markup.MarkupPort
- Methods inherited from interface com.anylogic.engine.markup.NetworkPort
- Methods inherited from interface com.anylogic.engine.presentation.SVGElement
- Methods inherited from interface com.anylogic.engine.presentation.UsdElement
- Constructor Details
- Method Details
- java.lang.Object
- com.anylogic.engine.markup.AbstractMarkup
- com.anylogic.engine.markup.MarkupShape
- com.anylogic.engine.markup.NetworkMarkupElement
- com.anylogic.engine.markup.Node
- com.anylogic.engine.markup.NetworkPortImpl
- All Implemented Interfaces:
AbstractPositionalMarkup,AggregatableAnimationElement,AnimationStaticLocationProvider,HasLevel,IMarkupLibraryDescriptor,INetworkMarkupElement,INode<Node,,Path> LevelElement,LevelMarkup,MarkupPort,com.anylogic.engine.markup.material_handling.IMaterialMarkupLibraryDescriptor,com.anylogic.engine.markup.material_handling.INodeDescriptor<Agent>,NetworkPort,SVGElement,UsdElement,Serializable
@AnyLogicInternalAPI public class NetworkPortImpl extends Node implements NetworkPort, AbstractPositionalMarkup
- See Also:
- Serialized Form
| Constructor | Description |
|---|---|
NetworkPortImpl |
| Modifier and Type | Method | Description |
|---|---|---|
void | addConnection | |
boolean | contains |
Test if the shape contains the point with the given coordinates (relative
to this shape's container, i.e.
|
Color | getLineColor() |
Returns the line color of the markup element, or
null if markup element has no line color or
has textured line (in this case Node.getLineTexture() should be used instead) |
Texture | getLineTexture() |
Returns the line texture of the markup element, if the markup element has line texture
|
double | getNearestPoint |
Calculates (using the
output object) the point in this space markup element
nearest to the given (x, y, z) point. |
double | getNearestPoint |
Calculates (using the
output object) the point in this space markup element
nearest to the given (x, y) point. |
MarkupPort | getPairedPort() |
Returns the paired port for this markup port.
|
Position | getPosition() | |
Position | getPosition |
Returns the item position with the given index.
In case of any wrong argument returns zero-index position (position for index=0 with totalNumber=1). |
Position | getPosition | |
double | getX() | |
Point | getXYZ() | |
Point | getXYZ | |
double | getY() | |
double | getZ() |
Returns the z coordinate of the node.
|
Point | randomPointInside |
Returns the randomly chosen point inside/along the given space markup element.
|
void | setLineColor |
Sets the line color of the markup element.
|
void | setLineColor |
Sets the line color (or
Texture) of the markup element. |
void | setPairedPort |
Sets the paired port for this markup port.
|
getCompatibleAgentExtensionClass, getConnection, getConnectionsCount, getFillColor, getFillTexture, getMaterialLibraryDescriptor, getMaxSpeed, getNumberOfTransporters, getTransferDistance, getTransferPositionByPercent, getTransporter, getTransporters, isLimitSpeed, setFillColor, setFillColor, setLimitSpeed, setMaxSpeederror, getFullName, getOutsideLevelZ, getPresentable, getSpace, initialize, isClickHandled, isOnly3D, isPublic, onClick, remove, setDrawMode, setOwnerdiscardOwner, executeUserAction, findSVGElement, getGroupOrOwner, getInspect, getInspectionWindowString, getName, getOrGenerateUSDId, getSVGComponent, getSVGId, initializeInternal, isVisible, onAggregatorInitialized, onAggregatorVisibilityChanged, removeSVGFromOwner, resetSVGState, setInspect, setVisible, updateDynamicProperties, updateDynamicPropertiesStructural, updateSVGPropertiesMethods inherited from interface com.anylogic.engine.markup.material_handling.IMaterialMarkupLibraryDescriptor
getMarkup, setMarkupexecuteUserAction, findSVGElement, getGroupOrOwner, getPresentable, getSVGComponent, getSVGId, isOnly3D, removeSVGFromOwner, resetSVGState, updateSVGProperties@AnyLogicInternalAPI public NetworkPortImpl(Agent owner, ShapeDrawMode drawMode, boolean isPublic, PathEnd<Path> pathEnd)
@AnyLogicInternalCodegenAPI public void setPairedPort(MarkupPort pairedPort)
Description copied from interface:
MarkupPortSets the paired port for this markup port.
- Specified by:
setPairedPortin interfaceMarkupPort- Parameters:
pairedPort- - a markup port from another
public MarkupPort getPairedPort()
Description copied from interface:
MarkupPortReturns the paired port for this markup port.
- Specified by:
getPairedPortin interfaceMarkupPort- Returns:
- the paired port for this markup port
public void addConnection(Path path, PathEndType type)
- Specified by:
addConnectionin interfaceINode<Node,Path> - Overrides:
addConnectionin classNode
public double getX()
- Specified by:
getXin interfaceAbstractPositionalMarkup
public double getY()
- Specified by:
getYin interfaceAbstractPositionalMarkup
public Point getXYZ()
- Specified by:
getXYZin interfaceMarkupPort
public Point getXYZ(Point out)
public Position getPosition()
public Position getPosition(Position out)
public Point randomPointInside(Random rng, Point out)
Description copied from interface:
INetworkMarkupElementReturns the randomly chosen point inside/along the given space markup element.
This method utilises the given Random Number Generator.
- Specified by:
randomPointInsidein interfaceINetworkMarkupElement- Parameters:
rng- the random number generator.out- output object to write to, may benull- Returns:
- the randomly chosen point
public Position getPosition(int index, int totalNumber, Position out)
Description copied from interface:
AnimationStaticLocationProviderReturns the item position with the given index.
In case of any wrong argument returns zero-index position (position for index=0 with totalNumber=1).
In case of any wrong argument returns zero-index position (position for index=0 with totalNumber=1).
- Specified by:
getPositionin interfaceAnimationStaticLocationProvider- Parameters:
index- the index of some item positions, should be not negative and less thantotalNumbertotalNumber- the total number of item positions, should be positiveout- output object to write to, may benull- Returns:
- the Position object with coordinates of the requested item position
public double getNearestPoint(double x, double y, Point output)
Description copied from class:
NetworkMarkupElementCalculates (using the
output object) the point in this space markup element
nearest to the given (x, y) point. Returns the square of distance to the point
(in the XY-projection).
All the calculations are performed in the horizontal projection (z-coordinates aren't used,
as if all of the z coordinates were zero).- Specified by:
getNearestPointin classNetworkMarkupElement- Parameters:
x- x coordinate of the pointy- y coordinate of the pointoutput- the output point to write result to. Note thatoutput.zis left unchanged.- Returns:
- the square of distance to the nearest point in the horizontal (XY) projection
public double getNearestPoint(double x, double y, double z, Point output)
Description copied from class:
NetworkMarkupElementCalculates (using the
output object) the point in this space markup element
nearest to the given (x, y, z) point. Returns the square of distance to the point.- Specified by:
getNearestPointin classNetworkMarkupElement- Parameters:
x- x coordinate of the pointy- y coordinate of the pointz- z coordinate of the pointoutput- the output point to write result to.- Returns:
- the square of distance to the nearest point
public boolean contains(double px, double py)
Description copied from class:
MarkupShapeTest 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:
containsin interfaceINetworkMarkupElement- Specified by:
containsin classMarkupShape- Parameters:
px- the x coordinate relative to this shape's containerpy- the y coordinate relative to this shape's container- Returns:
trueif the shape contains the point with the given coordinates
public double getZ()
Description copied from class:
NodeReturns the z coordinate of the node.
- Specified by:
getZin interfaceAbstractPositionalMarkup- Specified by:
getZin classNode- Returns:
- the z coordinate of the node
public void setLineColor(Color lineColor)
Description copied from class:
NodeSets the line color of the markup element.
- Specified by:
setLineColorin classNode- Parameters:
lineColor- the new line color, null = do not draw the markup element line
public void setLineColor(Paint lineColor)
Description copied from class:
NodeSets the line color (or
Texture) of the markup element.- Specified by:
setLineColorin interfaceINode<Node,Path> - Specified by:
setLineColorin classNode- Parameters:
lineColor- the new line color, null = do not draw the markup element line
public Color getLineColor()
Description copied from class:
NodeReturns the line color of the markup element, or
null if markup element has no line color or
has textured line (in this case Node.getLineTexture() should be used instead)- Specified by:
getLineColorin interfaceINode<Node,Path> - Specified by:
getLineColorin classNode- Returns:
- the line color of the markup element
public Texture getLineTexture()
Description copied from class:
NodeReturns the line texture of the markup element, if the markup element has line texture
- Specified by:
getLineTexturein interfaceINode<Node,Path> - Specified by:
getLineTexturein classNode- Returns:
- the line texture of the markup element