Ightaria
Class HFold

java.lang.Object
  extended by Ightaria.HFold

public class HFold
extends java.lang.Object


    This Class contains HFold, Path in HFold, and FlatPath.
    It should be truly three classes, but they are in one to
    avoid proliferation of java-class-files.
    Terminology: Obs, observer, is really a Vessel in this Class.
    In other words, driver's eyes direction can be different than
    direction of the Vessel, but driver is ignored in this class.


Field Summary
(package private) static double a
           
(package private) static java.awt.Color axisColor
           
(package private) static int axisLen
           
(package private) static double b
           
(package private) static double c
           
(package private) static int centerX
          3D Map parameters
(package private) static int centerY
          3D Map parameters
static double derivatorTrustedGeneralAccuracy
          Requires necessary perpendicularity accuracy and restricts accurate digigs for third degree Taylor member:
(package private) static double diamX
          Gabarits of path flat map.
(package private) static double diamX1
          For added new stop
(package private) static double diamY
          Gabarits of path flat map.
(package private) static double diamY1
          For added new stop
static boolean doPaintScratchMaps
           
(package private) static double drDirX
          Orientation of Driver's face
(package private) static double drDirY
          Orientation of Driver's face
(package private) static double drDirZ
          Orientation of Driver's face
(package private) static java.awt.Color driverAxisColor
           
(package private) static int drX
          Driver's position when observing HomeFold on scratch pad.
(package private) static int drY
          Driver's position when observing HomeFold on scratch pad.
(package private) static int drZ
          Driver's position when observing HomeFold on scratch pad.
(package private) static java.awt.Color flatPathColor
           
(package private) static double flatScale
          Must be set inside of procedures
(package private) static int flatScreenAxisLen
          Must be less than xCenter-5, yCenter-5.
(package private) static double flatX
           
(package private) static double flatY
           
static double hfRadius
          Radius of HF in PFold.
(package private) static int iL
          Number of stops limit.
(package private) static SingleHill img
           
(package private) static java.awt.Color imgColor
           
(package private) static SingleHill imgLow
           
(package private) static int imgRadius
           
(package private) static double lastStraightMoves
           
(package private) static double move
           
(package private) static java.awt.Color oColor
           
(package private) static double oFp
          Driver's Current (Face) Azi.
(package private) static double p
          Angle-like coodinates: Current angles theta and phi.
(package private) static Pop ppl
          Population object belonging to this HomeFold.
(package private) static double psy
           
(package private) static double[] rP
           
(package private) static double[] rT
           
(package private) static SPad sp
           
(package private) static SPad spDialog
           
static SPad spFDigits
           
(package private) static SPad spFlat
           
static double sphereNavigationTrustedGeneralAccuracy
           
(package private) static SPad spMainScreen
           
(package private) static SPad spMDigits
           
static int stAte
          Principal path sc.
static int stCOMPLETED
           
static int stDAte
           
static int stDMEASURING
           
static int stDOFF
          Azi(Path) M e a s u r e m e n t S c e n a r i o
static int stDPREPARING
           
static int stDSTART
           
static int stDSub
           
static int stDSub90DEGREES
           
static int stMOVING
           
static int stROTATING
           
static java.lang.String[] stString
           
static int stSubSTARTUP
           
static int stSubTURNED
           
static int Sx
          Number of Stops = Completed Moves.
static int Sx1
          Sx1 = Sx + 1 when motion is incomplete.
(package private) static double t
          Angle-like coodinates: Current angles theta and phi.
(package private) static double tau
           
static UBasis v
          Vessel's basis after current move from last stop.
(package private) static double[] vessFp
          Vessel's Azi along the path.
(package private) static double vFp
          Vessel's Current (accoumulated) Azi.
(package private) static double[] vFpIncr
           
(package private) static double vFpS
          vFp at last stop.
(package private) static UBasis vs
          Vessel's basis in PFold at recent stop.
(package private) static double[] vTauIncr
           
(package private) static double[] vX
           
(package private) static double[] vY
           
(package private) static int xCenter
          Center of picture on Flat Map
(package private) static int yCenter
          Center of picture on Flat Map
 
Constructor Summary
HFold()
           
 
Method Summary
static void diplayVesselMotionDigits()
          Vessel Motion Digits Display
static void displayVesselBasis()
           
static void FinalizeStop()
          Runs derivator
static void initiate()
           
static int mainState()
           
static void paintMotionsAndMeasure(int frameNumber)
          Paint Maps, Research Data
static void prepareDerivator()
          Preparing for measurement along straight path or terminating this measurement.
static void releaseGraphics()
           
static void reset_defaults()
           
static void restart()
           
static void runAngleminerAnDerivator()
          Must run when motions and scene relaxed
static java.lang.String stReadable()
          Returns readable VesselMotionFSM state and substate
static void supplyGraphics()
           
static void toggleMeasurement(boolean b)
           
static void updatePathLastMotion()
           Make vessel turn and move along geodesic.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hfRadius

public static double hfRadius
Radius of HF in PFold. It's value is used in model calculations. Radius is st only to provide a concrete value to encourage Observer to guess it.


vs

static UBasis vs
Vessel's basis in PFold at recent stop.


v

public static UBasis v
Vessel's basis after current move from last stop. In other words, current basis during Vessel's travel. Can be = vs if no move yet done after last stop.


t

static double t
Angle-like coodinates: Current angles theta and phi.


p

static double p
Angle-like coodinates: Current angles theta and phi.


stCOMPLETED

public static final int stCOMPLETED
See Also:
Constant Field Values

stROTATING

public static final int stROTATING
See Also:
Constant Field Values

stMOVING

public static final int stMOVING
See Also:
Constant Field Values

stSubSTARTUP

public static final int stSubSTARTUP
See Also:
Constant Field Values

stSubTURNED

public static final int stSubTURNED
See Also:
Constant Field Values

stString

public static java.lang.String[] stString

stAte

public static int stAte
Principal path sc. state


Sx

public static int Sx
Number of Stops = Completed Moves. Stop index.


Sx1

public static int Sx1
Sx1 = Sx + 1 when motion is incomplete.


iL

static int iL
Number of stops limit.


vTauIncr

static double[] vTauIncr

vFpIncr

static double[] vFpIncr

psy

static double psy

tau

static double tau

move

static double move

lastStraightMoves

static double lastStraightMoves

rT

static double[] rT

rP

static double[] rP

vessFp

static double[] vessFp
Vessel's Azi along the path. Master value. (Accomulated psy)


vFp

static double vFp
Vessel's Current (accoumulated) Azi. Shortcut to: vFp = vessFp[Sx1].


vFpS

static double vFpS
vFp at last stop. Shortcut to vFpS = vessFp[Sx].


oFp

static double oFp
Driver's Current (Face) Azi. Master value.


vX

static double[] vX

vY

static double[] vY

flatX

static double flatX

flatY

static double flatY

ppl

static Pop ppl
Population object belonging to this HomeFold.


spFDigits

public static SPad spFDigits

sp

static SPad sp

spFlat

static SPad spFlat

spMDigits

static SPad spMDigits

spMainScreen

static SPad spMainScreen

spDialog

static SPad spDialog

img

static SingleHill img

imgLow

static SingleHill imgLow

oColor

static java.awt.Color oColor

flatPathColor

static java.awt.Color flatPathColor

driverAxisColor

static java.awt.Color driverAxisColor

doPaintScratchMaps

public static boolean doPaintScratchMaps

drDirX

static double drDirX
Orientation of Driver's face


drDirY

static double drDirY
Orientation of Driver's face


drDirZ

static double drDirZ
Orientation of Driver's face


imgColor

static java.awt.Color imgColor

imgRadius

static int imgRadius

axisLen

static int axisLen

axisColor

static java.awt.Color axisColor

centerX

static int centerX
3D Map parameters


centerY

static int centerY
3D Map parameters


drX

static int drX
Driver's position when observing HomeFold on scratch pad.


drY

static int drY
Driver's position when observing HomeFold on scratch pad.


drZ

static int drZ
Driver's position when observing HomeFold on scratch pad.


xCenter

static int xCenter
Center of picture on Flat Map


yCenter

static int yCenter
Center of picture on Flat Map


flatScreenAxisLen

static int flatScreenAxisLen
Must be less than xCenter-5, yCenter-5.


diamX

static double diamX
Gabarits of path flat map. Don't make them zero.


diamY

static double diamY
Gabarits of path flat map. Don't make them zero.


diamX1

static double diamX1
For added new stop


diamY1

static double diamY1
For added new stop


flatScale

static double flatScale
Must be set inside of procedures


stDOFF

public static final int stDOFF
Azi(Path) M e a s u r e m e n t S c e n a r i o

See Also:
Constant Field Values

stDSTART

public static final int stDSTART
See Also:
Constant Field Values

stDPREPARING

public static final int stDPREPARING
See Also:
Constant Field Values

stDMEASURING

public static final int stDMEASURING
See Also:
Constant Field Values

stDAte

public static int stDAte

stDSub90DEGREES

public static final int stDSub90DEGREES
See Also:
Constant Field Values

stDSub

public static int stDSub

derivatorTrustedGeneralAccuracy

public static double derivatorTrustedGeneralAccuracy
Requires necessary perpendicularity accuracy and restricts accurate digigs for third degree Taylor member:


sphereNavigationTrustedGeneralAccuracy

public static double sphereNavigationTrustedGeneralAccuracy

a

static double a

b

static double b

c

static double c
Constructor Detail

HFold

public HFold()
Method Detail

initiate

public static void initiate()

supplyGraphics

public static void supplyGraphics()

releaseGraphics

public static void releaseGraphics()

restart

public static void restart()

reset_defaults

public static void reset_defaults()

updatePathLastMotion

public static void updatePathLastMotion()

  Make vessel turn and move along geodesic.
  psy - turn; tau - move.
  psy = Bridge.vFpAccIncr.


FinalizeStop

public static void FinalizeStop()
Runs derivator


toggleMeasurement

public static void toggleMeasurement(boolean b)

runAngleminerAnDerivator

public static void runAngleminerAnDerivator()
Must run when motions and scene relaxed


prepareDerivator

public static void prepareDerivator()
Preparing for measurement along straight path or terminating this measurement. Turns on on special condition. Called from Bridge.


paintMotionsAndMeasure

public static void paintMotionsAndMeasure(int frameNumber)
Paint Maps, Research Data


displayVesselBasis

public static void displayVesselBasis()

stReadable

public static java.lang.String stReadable()
Returns readable VesselMotionFSM state and substate


mainState

public static int mainState()

diplayVesselMotionDigits

public static void diplayVesselMotionDigits()
Vessel Motion Digits Display