public class Target
extends java.lang.Object
| Type | Property and Description |
|---|---|
javafx.beans.property.StringProperty |
directionAngle
Returns Target direction angle Property
|
javafx.beans.property.StringProperty |
easting
Returns Target easting Property
|
javafx.beans.property.StringProperty |
FOdistance
Returns Forward Observer distance Property
|
javafx.beans.property.StringProperty |
FOeasting
Returns Forward Observer easting Property
|
javafx.beans.property.StringProperty |
FOnorthing
Returns Forward Observer northing Property
|
javafx.beans.property.StringProperty |
northing
Returns Target northing Property
|
javafx.beans.property.StringProperty |
targetName
Returns Target name Property
|
| Modifier and Type | Field and Description |
|---|---|
private java.util.ArrayList<java.util.ArrayList<java.util.ArrayList<java.lang.Integer>>> |
corrections
Three-dimensional array for containing corrections.
|
private javafx.beans.property.StringProperty |
directionAngle
Direction angle of Forward Observer.
|
private javafx.beans.property.StringProperty |
easting
Target easting.
|
private javafx.beans.property.StringProperty |
FOdistance
Distance from Forward Observer to Target in meters.
|
private javafx.beans.property.StringProperty |
FOeasting
Easting of Forward Observer.
|
private javafx.beans.property.StringProperty |
FOnorthing
Northing of Forward Observer.
|
private boolean |
forwardObserver
Whether the target has Forward Observer or not.
|
private boolean |
isNameSet
Whether the target has its name set or not.
|
private javafx.beans.property.StringProperty |
northing
Target northing.
|
static int |
POLAR
Contains a value used for tagging of polar target, value is
2.
|
private boolean |
region
Whether the target is region target or not.
|
private java.util.ArrayList<Target> |
regionTargets
Array for region target.
|
static int |
SQUARE
Contains a value used for tagging of square target, value is
1.
|
private int |
tag
Field for tag.
|
private javafx.beans.property.StringProperty |
targetName
Target name.
|
private java.util.ArrayList<java.util.ArrayList<java.util.ArrayList<java.lang.Integer>>> |
targets
Three-dimensional array for containing target points.
|
static int |
TUK
Contains a value used for tagging of fire transfer target, value is
3.
|
| Constructor and Description |
|---|
Target()
Default constructor
Sets all values to null. |
Target(java.lang.String targetname,
java.lang.String easting,
java.lang.String northing,
java.lang.String directionAngle)
Constructor for Target with coordinate-method
|
Target(java.lang.String targetname,
java.lang.String easting,
java.lang.String northing,
java.lang.String directionAngle,
java.lang.String FOeasting,
java.lang.String FOnorthing,
java.lang.String FOdistance)
Constructor for Target with Forward Observer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCorrection(java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> correction)
Adds two dimensional array of correction to
corrections array.Calls method createNewCorrectionTarget. |
void |
addRegionTargets(java.lang.String direction) |
void |
addTargets(java.lang.String easting,
java.lang.String northing)
Adds 3 target points as array to
targets array. |
void |
clearCorrections()
Clears all corrections from
corrections array. |
void |
createNewCorrectionTarget(java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> correction)
Adds new target points to
targets array. |
void |
deleteLastCorrection()
Removes last correction from
corrections array if
array size is larger than 0.Calls method deleteLastTargetPoints. |
void |
deleteLastTargetPoints()
Removes last target from
targets array if array size is
larger than 1. |
javafx.beans.property.StringProperty |
directionAngleProperty()
Returns Target direction angle Property
|
javafx.beans.property.StringProperty |
eastingProperty()
Returns Target easting Property
|
javafx.beans.property.StringProperty |
FOdistanceProperty()
Returns Forward Observer distance Property
|
javafx.beans.property.StringProperty |
FOeastingProperty()
Returns Forward Observer easting Property
|
javafx.beans.property.StringProperty |
FOnorthingProperty()
Returns Forward Observer northing Property
|
java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> |
getDeltas()
Calculates difference between old target points and new target points
after corrections.
|
java.lang.String |
getDirectionAngle()
Returns Target direction angle.
|
java.lang.String |
getEasting()
Returns Target easting as String.
|
java.lang.String |
getFOdistance()
Returns distance from Forward Observer to Target as String.
|
java.lang.String |
getFOEasting()
Returns Forward Observer easting as String.
|
java.lang.String |
getFONorthing()
Returns Forward Observer northing as String.
|
java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> |
getLastCorrection()
Returns last correction from
corrections array if
array size is larger than 0. |
java.lang.String |
getNorthing()
Returns Target northing as String.
|
java.util.ArrayList<Target> |
getRegionTargets()
Returns array of three targets.
|
int |
getTag()
Returns Targets tag.
|
java.lang.String |
getTargetname()
Returns Target name.
|
java.util.ArrayList<java.util.ArrayList<java.util.ArrayList<java.lang.Integer>>> |
getTargets()
Returns three-dimensional array
targets. |
boolean |
hasForwardObserver()
Returns if Target has Forward Observer.
|
boolean |
isNameSet()
Returns if Target name has been set.
|
boolean |
isRegion()
Returns if Target is region (MAA-ALA) target.
|
java.util.ArrayList<java.lang.Integer> |
makeCorrection(int FOdirection,
java.util.ArrayList<java.lang.Integer> correction,
java.util.ArrayList<java.lang.Integer> targetPoint,
java.lang.Integer type)
Calculates correction of target and returns new target point.
|
javafx.beans.property.StringProperty |
northingProperty()
Returns Target northing Property
|
void |
setDirectionAngle(java.lang.String DirectionAngle)
Sets Target direction angle.
|
void |
setEasting(java.lang.String Easting)
Sets Target easting.
|
void |
setFOdistance(java.lang.String distance)
Sets distance from Forward Observers to Target.
|
void |
setFOEasting(java.lang.String Easting)
Sets Forward Observers easting.
|
void |
setFONorthing(java.lang.String Northing)
Sets Forward Observers northing.
|
void |
setForwardObserver(boolean forwardObserver)
Set if Target has Forward Observer.
|
void |
setNameSet(boolean isNameSet)
Set if Target name has been set.
|
void |
setNorthing(java.lang.String Northing)
Sets Target northing and adds target points.
|
void |
setRegion(boolean isRegion)
Set if Target is region target.
|
void |
setRegionTargets(java.util.ArrayList<Target> regionTargets)
Sets parameter to targets region targets
array. |
void |
setTag(int newTag)
Sets Targets tag.
|
void |
setTargetName(java.lang.String TargetName)
Sets Target name.
|
javafx.beans.property.StringProperty |
targetNameProperty()
Returns Target name Property
|
java.lang.String |
toData()
Returns the target information, separated by semicolons for saving.
|
java.lang.String |
toString()
Returns the target name.
|
void |
updateName()
Updates target name.
|
public javafx.beans.property.StringProperty targetNameProperty
public javafx.beans.property.StringProperty eastingProperty
public javafx.beans.property.StringProperty northingProperty
public javafx.beans.property.StringProperty directionAngleProperty
public javafx.beans.property.StringProperty FOeastingProperty
public javafx.beans.property.StringProperty FOnorthingProperty
public javafx.beans.property.StringProperty FOdistanceProperty
private final javafx.beans.property.StringProperty targetName
private final javafx.beans.property.StringProperty easting
private final javafx.beans.property.StringProperty northing
private final javafx.beans.property.StringProperty directionAngle
private final javafx.beans.property.StringProperty FOeasting
private final javafx.beans.property.StringProperty FOnorthing
private final javafx.beans.property.StringProperty FOdistance
public static final int SQUARE
public static final int POLAR
public static final int TUK
private boolean isNameSet
private boolean forwardObserver
private boolean region
private int tag
private java.util.ArrayList<java.util.ArrayList<java.util.ArrayList<java.lang.Integer>>> targets
private java.util.ArrayList<java.util.ArrayList<java.util.ArrayList<java.lang.Integer>>> corrections
private java.util.ArrayList<Target> regionTargets
public Target()
public Target(java.lang.String targetname,
java.lang.String easting,
java.lang.String northing,
java.lang.String directionAngle)
targetname - Name of the Target.easting - Easting of the Target.northing - Northing of the Target.directionAngle - Direction angle from the Forward Observer.public Target(java.lang.String targetname,
java.lang.String easting,
java.lang.String northing,
java.lang.String directionAngle,
java.lang.String FOeasting,
java.lang.String FOnorthing,
java.lang.String FOdistance)
targetname - Name of the Target.easting - Easting of the Target.northing - Northing of the Target.directionAngle - Direction angle from the Forward Observer.FOeasting - Easting of the Forward Observer.FOnorthing - Northing of the Forward Observer.FOdistance - Distance from the Forward Observer to the Target in meters.public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toData()
public void updateName()
public void addRegionTargets(java.lang.String direction)
public void addTargets(java.lang.String easting,
java.lang.String northing)
targets array.easting - Easting of the targetnorthing - Northing of the targetpublic void setTag(int newTag)
newTag - New tag of the Target.public int getTag()
public java.lang.String getTargetname()
public void setTargetName(java.lang.String TargetName)
TargetName - New name of the Target.public javafx.beans.property.StringProperty targetNameProperty()
public java.lang.String getEasting()
public void setEasting(java.lang.String Easting)
Easting - New value for easting.public javafx.beans.property.StringProperty eastingProperty()
public java.lang.String getNorthing()
public void setNorthing(java.lang.String Northing)
Northing - New value for northing.public javafx.beans.property.StringProperty northingProperty()
public java.lang.String getDirectionAngle()
public void setDirectionAngle(java.lang.String DirectionAngle)
DirectionAngle - New value for direction angle.public javafx.beans.property.StringProperty directionAngleProperty()
public java.lang.String getFOEasting()
public void setFOEasting(java.lang.String Easting)
Easting - New value for Forward Observer easting.public javafx.beans.property.StringProperty FOeastingProperty()
public java.lang.String getFONorthing()
public void setFONorthing(java.lang.String Northing)
Northing - New value for Forward Observer northing.public javafx.beans.property.StringProperty FOnorthingProperty()
public java.lang.String getFOdistance()
public void setFOdistance(java.lang.String distance)
distance - Distance from Forward Observer to Target.public javafx.beans.property.StringProperty FOdistanceProperty()
public void addCorrection(java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> correction)
corrections array.createNewCorrectionTarget.correction - Two-dimensional array of correctionpublic void deleteLastCorrection()
corrections array if
array size is larger than 0.deleteLastTargetPoints.public java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> getLastCorrection()
corrections array if
array size is larger than 0.public void clearCorrections()
corrections array.public void deleteLastTargetPoints()
targets array if array size is
larger than 1.public void createNewCorrectionTarget(java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> correction)
targets array.correction - Two-dimensional array of correction.public java.util.ArrayList<java.lang.Integer> makeCorrection(int FOdirection,
java.util.ArrayList<java.lang.Integer> correction,
java.util.ArrayList<java.lang.Integer> targetPoint,
java.lang.Integer type)
FOdirection - Direction of Forward Observer.correction - Array of corrections.targetPoint - Array of last target point.type - Tag of the target.public java.util.ArrayList<java.util.ArrayList<java.util.ArrayList<java.lang.Integer>>> getTargets()
targets.targets.public java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> getDeltas()
public boolean isNameSet()
public void setNameSet(boolean isNameSet)
isNameSet - Boolean whether the Target name is set or not.public boolean hasForwardObserver()
public void setForwardObserver(boolean forwardObserver)
forwardObserver - Boolean whether the Target has Forward Observer or not.public boolean isRegion()
public void setRegion(boolean isRegion)
isRegion - Boolean whether the Target is region target or not.public java.util.ArrayList<Target> getRegionTargets()