@AnyLogicInternalAPI public class LiftPortImpl extends MarkupShape implements NetworkPort
Modifier and Type | Method and Description |
---|---|
boolean |
contains(double px,
double py)
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)
|
Level |
getLevel()
Returns level associated with this space markup element or
null
if this element has no level |
Lift<?> |
getLift() |
java.lang.String |
getName()
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 . |
INetwork<?,?> |
getNetwork()
Returns the network this network port belongs to.
|
MarkupPort |
getPairedPort()
Returns the paired port for this markup port.
|
Agent |
getSpace()
Returns the agent where the markup element is defined
|
Point |
getXYZ() |
void |
postInitialize()
This method is internal and shouldn't be called by user.
|
void |
setPairedPort(MarkupPort pairedPort)
Sets the paired port for this markup port.
|
error, getDrawMode, getFullName, getOutsideLevelZ, getPresentable, initialize, isClickHandled, isPublic, onClick, remove, setDrawMode, setOwner
discardOwner, executeUserAction, findSVGElement, getSVGId, initializeInternal, isVisible, onAggregatorInitialized, onAggregatorVisibilityChanged, removeSVGFromOwner, resetSVGState, setVisible, updateDynamicProperties, updateDynamicPropertiesStructural, updateSVGProperties
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFullName
public Lift<?> getLift()
public Point getXYZ()
getXYZ
in interface MarkupPort
public INetwork<?,?> getNetwork()
NetworkPort
getNetwork
in interface NetworkPort
public void setPairedPort(MarkupPort pairedPort)
MarkupPort
setPairedPort
in interface MarkupPort
pairedPort
- - a markup port from anotherpublic MarkupPort getPairedPort()
MarkupPort
getPairedPort
in interface MarkupPort
public java.lang.String getName()
AbstractMarkup
#UNKNOWN_NAME
.
For replicated shapes returns the name of the field with the index of the shape
in square brackets.getName
in interface MarkupPort
getName
in class AbstractMarkup
#UNKNOWN_NAME
public Agent getSpace()
AbstractMarkup
getSpace
in class MarkupShape
public void postInitialize()
AggregatableAnimationElement
postInitialize
in interface AggregatableAnimationElement
public Level getLevel()
HasLevel
null
if this element has no levelgetLevel
in interface HasLevel
getLevel
in interface MarkupPort
getLevel
in class MarkupShape
public boolean contains(double px, double py)
MarkupShape
contains
in class MarkupShape
px
- the x coordinate relative to this shape's containerpy
- the y coordinate relative to this shape's containertrue
if the shape contains the point with the given
coordinatesCopyright © AnyLogic North America, LLC. All Rights Reserved.