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

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

Constructor Summary

Constructors 
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
Constructor Description

Method Summary

All Methods Instance Methods Concrete Methods 
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.
Method should be overridden for shapes with dynamic properties.
Modifier and Type Method Description

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 com.anylogic.engine.markup.AbstractMarkup

discardOwner, executeUserAction, findSVGElement, getName, getSVGId, initializeInternal, isVisible, onAggregatorInitialized, onAggregatorVisibilityChanged, removeSVGFromOwner, resetSVGState, setVisible, updateDynamicPropertiesStructural, updateSVGProperties

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 Detail

StorageTank

public StorageTank()

StorageTank

@Deprecated
public 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
Parameters:
owner -
drawMode -
isPublic -
x -
y -
z -
diameter -
height -
color -

Method Detail

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
How can we improve this article?