public class StorageTank extends AbstractFluidMarkup<StorageTankDataSource>
Constructor and Description |
---|
StorageTank() |
StorageTank(Agent owner,
ShapeDrawMode drawMode,
boolean isPublic,
double x,
double y,
double z,
double diameter,
double height,
java.awt.Paint color)
Deprecated.
deprecated in version 8.4, will be removed in the future releases
|
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)
|
double |
getDiameter()
Returns the diameter of the tank
|
double |
getHeight()
Returns the height of the tank
|
double |
getX()
Returns the x coordinate of the tank
|
double |
getY()
Returns the y coordinate of the tank
|
double |
getZ()
Returns the z coordinate of the tank
|
void |
setDiameter(double diameter)
Sets the diameter of the tank
|
void |
setHeight(double height)
Sets the height of the tank
|
void |
setX(double x)
Sets x coordinate of the tank
|
void |
setY(double y)
Sets y coordinate of the tank
|
void |
setZ(double z)
Sets z coordinate of the tank
|
void |
updateDynamicProperties()
Updates dynamic properties of this shape only (without structural contents, if any) in a given context.
|
getColor, getDataSource, getTexture, setColor, setColor, setDataSource
getDrawMode, getLevel, setLevel
error, getFullName, getOutsideLevelZ, getPresentable, getSpace, initialize, isClickHandled, isPublic, onClick, remove, setDrawMode, setOwner
discardOwner, executeUserAction, findSVGElement, getName, getSVGId, initializeInternal, isVisible, onAggregatorInitialized, onAggregatorVisibilityChanged, removeSVGFromOwner, resetSVGState, setVisible, updateDynamicPropertiesStructural, updateSVGProperties
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeInternal, onAggregatorVisibilityChanged, postInitialize
public StorageTank()
@Deprecated public StorageTank(Agent owner, ShapeDrawMode drawMode, boolean isPublic, double x, double y, double z, double diameter, double height, java.awt.Paint color)
owner
- drawMode
- isPublic
- x
- y
- z
- diameter
- height
- color
- public double getX()
public void setX(double x)
x
- the new x coordinatepublic double getY()
public void setY(double y)
y
- the new y coordinatepublic double getZ()
public void setZ(double z)
z
- the new z coordinatepublic double getDiameter()
public void setDiameter(double diameter)
diameter
- the new diameterpublic double getHeight()
public void setHeight(double height)
height
- the new heightpublic 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
coordinates@AnyLogicInternalCodegenAPI public void updateDynamicProperties()
AbstractMarkup
updateDynamicProperties
in class AbstractMarkup
Copyright © AnyLogic North America, LLC. All Rights Reserved.