public class Drift extends Spill
DECLUTTER_ANYWHERE, DECLUTTER_LOCALLY, DEFAULT_SPACING, handler, lat, lon, name, origXLabelOffset, origYLabelOffset, x, xOffset, y, yOffset
ADD_GRAPHIC_MASK, APP_OBJECT, 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, INDEX, INFOLINE, LABEL, LINETYPE_GREATCIRCLE, LINETYPE_RHUMB, LINETYPE_STRAIGHT, LINETYPE_UNKNOWN, LOWER_GRAPHIC_MASK, LOWER_TO_BOTTOM_GRAPHIC_MASK, NO_ROTATE, 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 and Description |
---|
Drift()
Creates a new instance of MapOb
|
Drift(edu.stanford.smi.protege.model.Instance instance)
Constructor of Drift object from Protege instance
|
Modifier and Type | Method and Description |
---|---|
static Drift |
createDrift(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 speed2,
java.lang.String course)
Factory method for creating Drift object from string parameters
|
void |
drift(double time)
Drift on one step
|
double[] |
drift(double[] llp,
double dist,
double[] dir,
double dd,
double da)
Method for calculation of new coordinates for points approximating
drift polygon
|
Bounds |
getBounds() |
double |
getDriftCourse()
Current drift course in degrees
|
double |
getDriftSpeed()
Current drift speed
|
void |
mapFromProtege(edu.stanford.smi.protege.model.Instance instance)
Rewrite information from Protege Instance to this object.
|
void |
setBounds(Bounds bounds) |
void |
setDriftCourse(int c)
Set new drift course
|
void |
setDriftSpeed(double s2)
Set new drift speed
|
createSpill, getCurrentRadius, getDamping, getDir, getLLP, getN, getRadius, getSpeed, setDamping, setLocation, setRadius, setSpeed, spill, spill
createOMTSpline, putLocationMarker
contains, contains, createOMTPoly, getLLPoints, getLLPoints, setLine, tow
addLinkToMe, bearingsDeg, bearingsDeg, bearingsDeg, bearingsRad, coordFromProtege, createMapOb, distanceNM, distanceNM, distanceNM, getDeg, getDegMin, getDescription, getDescriptionInstance, getInstance, getLatitude, getLatitudeDM, getLinksToMe, getLongitude, getLongitudeDM, getPgid, getToolTip, getWhoTows, hideLabel, mapToProtege, offTow, position, removeLinkToMe, setDescription, setDescriptionInstance, setGraphicLocations, setLabelText, setToolTip, setWhoTows, showLabel
setGraphicLocations, setGraphicLocations
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
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, setLabelLocation, setLineColor, setLinePaint, setMatted, setMattingPaint, setRenderType, setSelectColor, setSelected, setSelectPaint, setShowEditablePalette, setStroke, setTextureMask, shouldRenderEdge, shouldRenderFill
appendShapeEdge, appendShapeEdge, appendShapeEdge, appendShapeEdge, clearAttributes, createBoxShape, createShape, createShape, describeShapeDetail, describeShapeDetail, distanceToEdge, distanceToEdge, draw, draw, fill, fill, getAppObject, getAttribute, getAttributes, getLineType, getNeedToRegenerate, getShape, isRenderable, isRenderable, isVisible, putAttribute, removeAttribute, setAppObject, setAttributes, setLineType, setNeedToRegenerate, setShape, setVisible
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearAttributes, distanceToEdge, draw, draw, fill, fill, getAppObject, getAttribute, getAttributes, getLineType, getNeedToRegenerate, getShape, isRenderable, isRenderable, isVisible, putAttribute, removeAttribute, setAppObject, setAttributes, setLineType, setNeedToRegenerate, setShape, setVisible
public Drift()
public Drift(edu.stanford.smi.protege.model.Instance instance) throws java.lang.Exception
instance
- - Protege Instancejava.lang.Exception
- -public static Drift createDrift(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 speed2, java.lang.String course) throws java.lang.Exception
label
- - name of Drift 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"speed2
- - speed of drift in form "KK.K"course
- - course of drift in form "DDD"java.lang.Exception
- -public void mapFromProtege(edu.stanford.smi.protege.model.Instance instance)
mapFromProtege
in interface Protegian
mapFromProtege
in class Spill
instance
- - Protege Instancepublic double[] drift(double[] llp, double dist, double[] dir, double dd, double da)
llp
- - array of pointsdist
- - distance of spill on one step in NMdir
- - array of spill directions for every point in radiansdd
- - distance of drift on one step in NMda
- - direction of drift in radianspublic void drift(double time)
time
- - elapsed time on one step in hourspublic double getDriftSpeed()
public void setDriftSpeed(double s2)
s2
- - new speed in knotspublic double getDriftCourse()
public void setDriftCourse(int c)
c
- - new drift course in degrees