com.astroshare.astroonline.horoscopes
Class Natal

java.lang.Object
  extended by com.astroshare.astroonline.horoscopes.Horoscope
      extended by com.astroshare.astroonline.horoscopes.Natal
Direct Known Subclasses:
Favorite, Now, Synastry

public class Natal
extends Horoscope

Implementation of online horoscope Natal.

The interpretation of the natal horoscope is based on the full astrological calculation. Based on this calculation an interpretation is selecting from the database.


Field Summary
protected static org.apache.log4j.Logger log
          init logging
protected  Visitor visitor
          visitor instance holding visitor data (person 1)
 
Fields inherited from class com.astroshare.astroonline.horoscopes.Horoscope
args, databaseID, horoscopeID, language, startupMode, templateInput, templateOutput
 
Constructor Summary
Natal()
           
 
Method Summary
protected  boolean checkHoroscopeData()
           Override method checkHoroscopeData.
protected  java.lang.String getFlashvarsProg(Person prs)
           Get the flash string for the current constellation.
protected  void getHoroscopeArguments()
           Override method getHoroscopeArguments.
protected  java.util.HashMap<java.lang.String,java.lang.Object> getInputMap()
           Override method getInputMap
protected  java.util.HashMap<java.lang.String,java.lang.Object> getOutputMap()
           Override method getOutputMap.
protected  java.util.ArrayList<java.lang.Object> getTextFromDatabaseList(Sql sql, Person prs)
           Get horoscope text from database.
 
Methods inherited from class com.astroshare.astroonline.horoscopes.Horoscope
getFormText, getHoroscope, getInputPage, getMap, getOutputPage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.log4j.Logger log
init logging


visitor

protected Visitor visitor
visitor instance holding visitor data (person 1)

Constructor Detail

Natal

public Natal()
Method Detail

getInputMap

protected java.util.HashMap<java.lang.String,java.lang.Object> getInputMap()

Override method getInputMap

Specified by:
getInputMap in class Horoscope
Returns:
Input map

getOutputMap

protected java.util.HashMap<java.lang.String,java.lang.Object> getOutputMap()

Override method getOutputMap.

Specified by:
getOutputMap in class Horoscope
Returns:
Output map

getTextFromDatabaseList

protected java.util.ArrayList<java.lang.Object> getTextFromDatabaseList(Sql sql,
                                                                        Person prs)

Get horoscope text from database.

Parameters:
sql - Database connection
prs - Personal information visitor
Returns:
ArrayList Horoscope interpretations

getHoroscopeArguments

protected void getHoroscopeArguments()

Override method getHoroscopeArguments.

Specified by:
getHoroscopeArguments in class Horoscope

checkHoroscopeData

protected boolean checkHoroscopeData()

Override method checkHoroscopeData.

Specified by:
checkHoroscopeData in class Horoscope
Returns:
TRUE=Data is valid;FALSE=Data is invalid

getFlashvarsProg

protected java.lang.String getFlashvarsProg(Person prs)

Get the flash string for the current constellation. This string is used to paint the current planet positions on the outside ring of the chart.

Returns:
Flash string containing current planet positions


Astro-Online © 2001 − 2008 Astro Share
Documentation generated on: Thursday August 12th 2008 (PS)