|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bbn.openmap.omGraphics.geom.BasicGeometry
com.bbn.openmap.omGraphics.OMGraphicAdapter
com.bbn.openmap.layer.location.Location
com.bbn.openmap.layer.location.BasicLocation
ru.igis.omtab.MapOb
ru.igis.omtab.OMTPoly
ru.igis.omtab.OMTSpline
ru.igis.omtab.Spill
public class Spill
Class for simulation of spill
Field Summary |
---|
Fields inherited from class ru.igis.omtab.MapOb |
---|
df |
Fields inherited from class com.bbn.openmap.layer.location.Location |
---|
DECLUTTER_ANYWHERE, DECLUTTER_LOCALLY, DEFAULT_SPACING, handler, lat, lon, name, origXLabelOffset, origYLabelOffset, x, xOffset, y, yOffset |
Fields inherited from interface com.bbn.openmap.omGraphics.OMGraphicConstants |
---|
ADD_GRAPHIC_MASK, BASIC_STROKE, CHANGE_APPEARANCE, clear, DECIMAL_DEGREES, DECLUTTERTYPE_LINE, DECLUTTERTYPE_MOVE, DECLUTTERTYPE_NONE, DECLUTTERTYPE_SPACE, DEFAULT_ROTATIONANGLE, DELETE_GRAPHIC_MASK, DESELECT_GRAPHIC_MASK, DESELECTALL_GRAPHIC_MASK, GRAPHICTYPE_ARC, GRAPHICTYPE_BITMAP, GRAPHICTYPE_CIRCLE, GRAPHICTYPE_ELLIPSE, GRAPHICTYPE_GRAPHIC, GRAPHICTYPE_GRID, GRAPHICTYPE_LINE, GRAPHICTYPE_POINT, GRAPHICTYPE_POLY, GRAPHICTYPE_RASTER, GRAPHICTYPE_RECTANGLE, GRAPHICTYPE_TEXT, INFOLINE, LABEL, LINETYPE_GREATCIRCLE, LINETYPE_RHUMB, LINETYPE_STRAIGHT, LINETYPE_UNKNOWN, LOWER_GRAPHIC_MASK, LOWER_TO_BOTTOM_GRAPHIC_MASK, OMGRAPHIC_ELT, OMGRAPHIC_TYPE_ATTR, RADIANS, RAISE_GRAPHIC_MASK, RAISE_TO_TOP_GRAPHIC_MASK, REMOVABLE, RENDERTYPE_LATLON, RENDERTYPE_OFFSET, RENDERTYPE_UNKNOWN, RENDERTYPE_XY, SELECT_GRAPHIC_MASK, SORT_GRAPHICS_MASK, TOOLTIP, UPDATE_GRAPHIC_MASK, UPDATED |
Constructor Summary | |
---|---|
Spill()
Creates a new instance of MapOb |
|
Spill(edu.stanford.smi.protege.model.Instance instance)
Constructor of Spill object from Protege instance |
Method Summary | |
---|---|
static Spill |
createSpill(java.lang.String label,
java.lang.String latitude,
java.lang.String longitude,
java.lang.String lcolor,
java.lang.String fcolor,
java.lang.String N,
java.lang.String speed,
java.lang.String radius,
java.lang.String damping)
Factory method for creating Drift object from string parameters |
double |
getCurrentRadius()
Current radius of spill |
double |
getDamping()
Damping of spill |
double[] |
getDir()
Array of directions for points movement |
double[] |
getLLP()
Array of approximating points's coordinates |
int |
getN()
Return number of points |
double |
getRadius()
Maximum radius of spill |
double |
getSpeed()
Current speed of spill |
void |
mapFromProtege(edu.stanford.smi.protege.model.Instance instance)
Rewrite information from Protege Instance to this object. |
void |
setDamping(double d)
Set new damping of spill |
void |
setLocation(java.lang.String dmlat,
java.lang.String dmlon)
Change coordinates of this Spill object from the string representation in degrees and minutes: "deg min" and initialize its points to this new location |
void |
setRadius(double r)
Set new maximum radius |
void |
setSpeed(double s)
Set new speed of spill |
static double[] |
spill(double[] llp,
double dist,
double[] dir)
Method for calculation of new coordinates for points approximating spill polygon |
void |
spill(long time)
Spill on one step |
Methods inherited from class ru.igis.omtab.OMTSpline |
---|
createOMTSpline |
Methods inherited from class ru.igis.omtab.OMTPoly |
---|
contains, contains, createOMTPoly, getLLPoints, getLLPoints, setLine, tow |
Methods inherited from class ru.igis.omtab.MapOb |
---|
addLinkToMe, bearingsDeg, bearingsDeg, bearingsDeg, bearingsRad, coordFromProtege, createMapOb, distanceNM, distanceNM, distanceNM, getDeg, getDegMin, getDescription, getInstance, getLatitude, getLatitudeDM, getLeftPanel, getLinksToMe, getLongitude, getLongitudeDM, getToolTip, getWhoTows, hideLabel, mapToProtege, offTow, position, removeLinkToMe, setCourse, setDescription, setGraphicLocations, setLabelText, setLeftPanel, setToolTip, setWhoTows, showLabel, showLeftPanel |
Methods inherited from class com.bbn.openmap.layer.location.BasicLocation |
---|
setGraphicLocations, setGraphicLocations |
Methods inherited from class com.bbn.openmap.layer.location.Location |
---|
convertCoordinateString, distance, generate, generate, getDeclutterLimit, getDetails, getHorizontalLabelBuffer, getLabel, getLocationHandler, getLocationMarker, getName, isAllowDecluttering, isShowLocation, isShowName, main, render, renderLocation, renderName, setAllowDecluttering, setDeclutterLimit, setDetails, setHorizontalLabelBuffer, setLabel, setLocation, setLocation, setLocation, setLocation, setLocationHandler, setLocationMarker, setLocationPaint, setName, setShowLocation, setShowName, showDetails |
Methods inherited from class com.bbn.openmap.omGraphics.OMGraphicAdapter |
---|
clone, deselect, getDeclutterType, getDisplayColor, getDisplayPaint, getEdgeMatchesFill, getFillColor, getFillPaint, getHasLabel, getLineColor, getLinePaint, getMattingPaint, getRenderType, getSelectColor, getSelectPaint, getShowEditablePalette, getStroke, getTextureMask, hasLineTypeChoice, isClear, isMatted, isSelected, normalizeDistanceForLineWidth, regenerate, renderLabel, restore, select, setDeclutterType, setFillColor, setFillPaint, setGraphicsColor, setGraphicsForEdge, setGraphicsForFill, setLabelLocation, setLabelLocation, setLabelLocation, setLabelLocation, setLineColor, setLinePaint, setMatted, setMattingPaint, setRenderType, setSelectColor, setSelected, setSelectPaint, setShape, setShowEditablePalette, setStroke, setTextureMask, shouldRenderEdge, shouldRenderFill |
Methods inherited from class com.bbn.openmap.omGraphics.geom.BasicGeometry |
---|
appendShapeEdge, appendShapeEdge, appendShapeEdge, appendShapeEdge, clearAttributes, createBoxShape, createShape, createShape, describeShapeDetail, describeShapeDetail, distanceToEdge, draw, fill, getAppObject, getAttribute, getAttributes, getLineType, getNeedToRegenerate, getShape, isRenderable, isVisible, putAttribute, removeAttribute, setAppObject, setAttributes, setLineType, setNeedToRegenerate, setVisible |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.bbn.openmap.omGraphics.OMGeometry |
---|
clearAttributes, distanceToEdge, draw, fill, getAppObject, getAttribute, getAttributes, getLineType, getNeedToRegenerate, getShape, isRenderable, isVisible, putAttribute, removeAttribute, setAppObject, setAttributes, setLineType, setNeedToRegenerate, setVisible |
Constructor Detail |
---|
public Spill()
public Spill(edu.stanford.smi.protege.model.Instance instance) throws java.lang.Exception
instance
- - Protege instance
java.lang.Exception
- -Method Detail |
---|
public static Spill createSpill(java.lang.String label, java.lang.String latitude, java.lang.String longitude, java.lang.String lcolor, java.lang.String fcolor, java.lang.String N, java.lang.String speed, java.lang.String radius, java.lang.String damping) throws java.lang.Exception
label
- - name of Spill objectlatitude
- - latitude in form "DD MM.M"longitude
- - longitude in form "DD MM.M"lcolor
- - border line color in form "AARRGGBB"fcolor
- - fill color in form "AARRGGBB"N
- - number of approximation points in form "N"speed
- - speed of spill in form "KK.K"radius
- - maximal radius of spill in form "NMM.M"damping
- - of spill speed on one hour {1 - 0}
java.lang.Exception
- -public void mapFromProtege(edu.stanford.smi.protege.model.Instance instance)
mapFromProtege
in interface Protegian
mapFromProtege
in class OMTPoly
instance
- - Protege Instancepublic static double[] spill(double[] llp, double dist, double[] dir)
llp
- - array of pointsdist
- - distance of spill on one step in NMdir
- - array of spill directions for every point in radians
public void spill(long time)
time
- - elapsed time on one step in hourspublic void setLocation(java.lang.String dmlat, java.lang.String dmlon) throws java.lang.Exception
setLocation
in class MapOb
dmlat
- - Latitude as "deg min"dmlon
- - Longitude as "deg min"
java.lang.Exception
public int getN()
public double getSpeed()
public void setSpeed(double s)
setSpeed
in class MapOb
s
- - new speed in knotspublic void setDamping(double d)
d
- - new damping from {1 - 0} of spill speed on one hourpublic double getDamping()
public double getRadius()
public void setRadius(double r)
r
- - new radius in NMpublic double[] getLLP()
public double[] getDir()
public double getCurrentRadius()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |