10 likes | 171 Views
mL. mMemberList. {Abstract} Member +Member(pForename : String, pSurename : String, pEmail : String, pGender : Boolean, pTelNumber : String, pPostCode : String, pDOB : String, pSmoker : Boolean). -mForename : String -mSurename : String -mEmail : String -mGender : Boolean
E N D
mL mMemberList {Abstract} Member +Member(pForename : String, pSurename : String, pEmail : String, pGender : Boolean, pTelNumber : String, pPostCode : String, pDOB : String, pSmoker : Boolean) -mForename : String -mSurename : String -mEmail : String -mGender : Boolean -mTelNumber : String -mPostCode : String -mDOB : String -mSmoker : Boolean mManager MemberOfferingLift +MemberOfferingLift(pForename : String, pSurename : String, pEmail : String, pGender : Boolean, pTelNumber : String, pPostCode : String, pDOB : String, pSmoker : Boolean, pDriving License : Boolean) MemberSeekingLift +MemberSeekingLift(pForename : String, pSurename : String, pEmail : String, pGender : Boolean, pTelNumber : String, pPostCode : String, pDOB : String, pSmoker : Boolean) Manager +startUp ( ) +shutDown ( ) +getMemberList ( ) : MemberList +getCarList ( ) : CarList +getJourneyList ( ) : JourneyList JourneyList +addJourney(pJourneyID : int, pNewJourney : Journey) +deleteJourney(pJourneyID : int) +getJourney(pJourneyID : int) : Journey +saveToFile ( ) +readFromFile ( ) +printMemberList ( ) +matchJourney (pJourneyID : int) CarList +addCar(pCarID : int, pNewCar : Car) +deleteCar(pCarID : int) +getCar(pCarID : int) : Car +saveToFile ( ) +readFromFile ( ) +printMemberList ( ) CarShareGUI mFindJourney MemberList +addMemberSeekingLift(pMemberID : int, pNewMember : MemberSeekingLift) +addMemberOfferingLift(pMemberID : int, pNewMember : MemberOfferingLift) +getMember(pMemberID : int) : Member +saveToFile ( ) +readFromFile ( ) +printMemberList ( ) -mDrivingLicence : Boolean MEMBER_FILE = “member.dat” CAR_FILE = “car.dat” JOURNEY_FILE = “journey.dat” -mJourneyMap : Map -mMemberMap : Map -mCarMap : Map jL mJourney mCar cL mJourneyList Journey +Journey(pTempMemberID : int, pStartPostcode : String, pEndPostcode : String, pFrequency : String, pDepartureTime : Time, pReturnTime : Time, pFlexibility : Time) Car +Car(pTempMemberID : int, pNoOfSeats : int, pMake : String, pModel : String, pRegNumber : String) mCarList -mTempMemberID : int -mNoOfSeats : int -mMake : String -mModel : String -mRegNumber : String -mTempMemberID : int -mStartPostcode : String -mEndPostcode : String -mFrequency : String -mDepartureTime : Time -mReturnTime : Time -mFlexibility : Time