AnyLogic
Expand
Font size
All Implemented Interfaces:
AggregatableAnimationElement, HasLevel, MarkupPort, NetworkPort, SVGElement, Serializable

@AnyLogicInternalAPI
public class LiftPortImpl
extends MarkupShape
implements NetworkPort
See Also:
Serialized Form

Method Summary

Modifier and TypeMethodDescription
booleancontains(double px, double py)
Test if the shape contains the point with the given coordinates (relative to this shape's container, i.e.
LevelgetLevel()
Returns level associated with this space markup element or null if this element has no level
Lift<?>getLift() 
StringgetName()
If the markup shape is declared as field in an agent class, e.g.
INetwork<?,?>getNetwork()
Returns the network this network port belongs to.
MarkupPortgetPairedPort()
Returns the paired port for this markup port.
AgentgetSpace()
Returns the agent where the markup element is defined
PointgetXYZ() 
voidpostInitialize()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
voidsetPairedPort(MarkupPort pairedPort)
Sets the paired port for this markup port.

Methods inherited from class com.anylogic.engine.markup.MarkupShape

error, getDrawMode, getFullName, getOutsideLevelZ, getPresentable, initialize, isClickHandled, isPublic, onClick, remove, setDrawMode, setOwner

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods inherited from interface com.anylogic.engine.markup.MarkupPort

getFullName

Method Details

getLift

public Lift<?> getLift()

getXYZ

public Point getXYZ()
Specified by:
getXYZ in interface MarkupPort

getNetwork

public INetwork<?,?> getNetwork()
Description copied from interface: NetworkPort
Returns the network this network port belongs to.
Specified by:
getNetwork in interface NetworkPort
Returns:
the network this network port belongs to

setPairedPort

public void setPairedPort(MarkupPort pairedPort)
Description copied from interface: MarkupPort
Sets the paired port for this markup port.
Specified by:
setPairedPort in interface MarkupPort
Parameters:
pairedPort - - a markup port from another

getPairedPort

public MarkupPort getPairedPort()
Description copied from interface: MarkupPort
Returns the paired port for this markup port.
Specified by:
getPairedPort in interface MarkupPort
Returns:
the paired port for this markup port

getName

public String getName()
Description copied from class: AbstractMarkup
If the markup shape is declared as field in an agent class, e.g. if it was drawn in the graphical editor, returns the name of the field, otherwise returns the string #UNKNOWN_NAME. For replicated shapes returns the name of the field with the index of the shape in square brackets.
This method is designed to be used for debug/development purposes only. It has a very inefficient implementation
Specified by:
getName in interface MarkupPort
Overrides:
getName in class AbstractMarkup
Returns:
the name of the corresponding field or #UNKNOWN_NAME

getSpace

public Agent getSpace()
Description copied from class: AbstractMarkup
Returns the agent where the markup element is defined
Overrides:
getSpace in class MarkupShape
Returns:
the agent associated with this element

postInitialize

public void postInitialize()
Description copied from interface: AggregatableAnimationElement
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
Specified by:
postInitialize in interface AggregatableAnimationElement

getLevel

public Level getLevel()
Description copied from interface: HasLevel
Returns level associated with this space markup element or null if this element has no level
Specified by:
getLevel in interface HasLevel
Specified by:
getLevel in interface MarkupPort
Specified by:
getLevel in class MarkupShape
Returns:
the level associated with this space markup element

contains

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 class MarkupShape
Parameters:
px - the x coordinate relative to this shape's container
py - the y coordinate relative to this shape's container
Returns:
true if the shape contains the point with the given coordinates