AnyLogic
Expand
Font size
All Implemented Interfaces:
AggregatableAnimationElement, HasLevel, LevelElement, LevelMarkup, SVGElement, Serializable

public class StorageTank
extends AbstractFluidMarkup<StorageTankDataSource>
See Also:
Serialized Form

Constructor Summary

ConstructorDescription
StorageTank() 
StorageTank(Agent owner, ShapeDrawMode drawMode, boolean isPublic, double x, double y, double z, double diameter, double height, Paint color)
Deprecated.
deprecated in version 8.4, will be removed in the future releases

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.
doublegetDiameter()
Returns the diameter of the tank
doublegetHeight()
Returns the height of the tank
doublegetX()
Returns the x coordinate of the tank
doublegetY()
Returns the y coordinate of the tank
doublegetZ()
Returns the z coordinate of the tank
voidsetDiameter(double diameter)
Sets the diameter of the tank
voidsetHeight(double height)
Sets the height of the tank
voidsetX(double x)
Sets x coordinate of the tank
voidsetY(double y)
Sets y coordinate of the tank
voidsetZ(double z)
Sets z coordinate of the tank
voidupdateDynamicProperties()
Updates dynamic properties of this shape only (without structural contents, if any) in a given context.
Method should be overridden for shapes with dynamic properties.

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

getColor, getDataSource, getTexture, setColor, setColor, setDataSource

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

getDrawMode, getLevel, setLevel

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

error, getFullName, getOutsideLevelZ, getPresentable, getSpace, 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.AggregatableAnimationElement

initializeInternal, onAggregatorVisibilityChanged, postInitialize

Constructor Details

StorageTank

public StorageTank()

StorageTank

@Deprecated
public StorageTank(Agent owner,
 ShapeDrawMode drawMode,
 boolean isPublic,
 double x,
 double y,
 double z,
 double diameter,
 double height,
 Paint color)
Deprecated.
deprecated in version 8.4, will be removed in the future releases
Parameters:
owner -
drawMode -
isPublic -
x -
y -
z -
diameter -
height -
color -

Method Details

getX

public double getX()
Returns the x coordinate of the tank
Returns:
x coordinate of the tank

setX

public void setX(double x)
Sets x coordinate of the tank
Parameters:
x - the new x coordinate

getY

public double getY()
Returns the y coordinate of the tank
Returns:
y coordinate of the tank

setY

public void setY(double y)
Sets y coordinate of the tank
Parameters:
y - the new y coordinate

getZ

public double getZ()
Returns the z coordinate of the tank
Returns:
z coordinate of the tank

setZ

public void setZ(double z)
Sets z coordinate of the tank
Parameters:
z - the new z coordinate

getDiameter

public double getDiameter()
Returns the diameter of the tank
Returns:
diameter of the tank, in pixels

setDiameter

public void setDiameter(double diameter)
Sets the diameter of the tank
Parameters:
diameter - the new diameter

getHeight

public double getHeight()
Returns the height of the tank
Returns:
height of the tank, in pixels

setHeight

public void setHeight(double height)
Sets the height of the tank
Parameters:
height - the new height

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

updateDynamicProperties

@AnyLogicInternalCodegenAPI
public void updateDynamicProperties()
Description copied from class: AbstractMarkup
Updates dynamic properties of this shape only (without structural contents, if any) in a given context.
Method should be overridden for shapes with dynamic properties. Note that you should call super.updateDynamicProperties() at the end of overridden method
Overrides:
updateDynamicProperties in class AbstractMarkup