logbook.storage
Class LogBook

java.lang.Object
  extended by logbook.storage.LogBook
All Implemented Interfaces:
java.io.Serializable, ElementSerialVersionUIDs

public class LogBook
extends java.lang.Object
implements java.io.Serializable, ElementSerialVersionUIDs

See Also:
Serialized Form

Field Summary
static boolean LOGBOOK_HAS_UNSAVED_CHANGES
           
 
Fields inherited from interface logbook.storage.ElementSerialVersionUIDs
ACT_INST_TIME_SER_VRSN_UID, DATE_OF_FLIGHT_SER_VRSN_UID, DAY_TIME_SER_VRSN_UID, DUAL_INSTRUC_RCVD_TIME_SER_VRSN_UID, FROM_IDENT_SER_VRSN_UID, GRND_TRNR_FTD_TIME_SER_VRSN_UID, LOGBOOK_REC_BASE_ELEMENT_SER_VRSN_UID, LOGBOOK_RECORD_BASE_SER_VRSN_UID, LOGBOOK_RECORD_SER_VRSN_UID, LOGBOOK_SER_VRSN_UID, MAKE_MODEL_SER_VRSN_UID, MEL_TIME_SER_VRSN_UID, NIGHT_TIME_SER_VRSN_UID, NUM_INSTR_APPRCHS_SER_VRSN_UID, NUM_LDGS_SER_VRSN_UID, PIC_TIME_SER_VRSN_UID, REMARKS_SER_VRSN_UID, SEL_TIME_SER_VRSN_UID, SIM_INST_TIME_SER_VRSN_UID, TAIL_NUMBER_SER_VRSN_UID, TO_IDENT_SER_VRSN_UID, TOTAL_HRS_SER_VRSN_UID, XCOUNTRY_TIME_SER_VRSN_UID
 
Constructor Summary
LogBook()
          Creates a new instance of LogBook
 
Method Summary
 void addLogBookRecord(LogBookRecord pLogBookRec)
           
 void delteLogBookRec(int logBookRecIndex)
           
 LogBookRecord getLogBookRec(int logBookRecIndex)
          We can do a "dot" operation(reference) off the returned value in order to modify it b/c the new stack variable that's returned is really referencing one object on the heap! :)
 java.util.ArrayList<LogBookRecord> getLogBookRecs()
           
 int getNumRecs()
           
 int getProperIndexOfRecByDate(LogBookRecord pLogBookRec)
           
 void setLogBookRec(int logBookRecIndex, LogBookRecord logBookRec)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGBOOK_HAS_UNSAVED_CHANGES

public static boolean LOGBOOK_HAS_UNSAVED_CHANGES
Constructor Detail

LogBook

public LogBook()
Creates a new instance of LogBook

Method Detail

addLogBookRecord

public void addLogBookRecord(LogBookRecord pLogBookRec)
                      throws java.io.IOException
Parameters:
pLogBookRec -
Throws:
java.io.IOException

getLogBookRec

public LogBookRecord getLogBookRec(int logBookRecIndex)
We can do a "dot" operation(reference) off the returned value in order to modify it b/c the new stack variable that's returned is really referencing one object on the heap! :)

Parameters:
logBookRecIndex -
Returns:

setLogBookRec

public void setLogBookRec(int logBookRecIndex,
                          LogBookRecord logBookRec)
Parameters:
logBookRecIndex -
logBookRec -

getProperIndexOfRecByDate

public int getProperIndexOfRecByDate(LogBookRecord pLogBookRec)
Returns:

delteLogBookRec

public void delteLogBookRec(int logBookRecIndex)
Parameters:
logBookRecIndex -

getLogBookRecs

public java.util.ArrayList<LogBookRecord> getLogBookRecs()

getNumRecs

public int getNumRecs()


Copyright © JFlightLog GNU