1 19 20 package org.polepos.teams.jdo.data; 21 22 import org.polepos.framework.*; 23 24 27 public class JdoIndexedPilot implements CheckSummable 28 { 29 private String mName; 30 private String mFirstName; 31 private int mPoints; 32 private int mLicenseID; 33 34 35 38 public JdoIndexedPilot() 39 { 40 } 41 42 43 46 public JdoIndexedPilot(String name, int points) 47 { 48 this.mName=name; 49 this.mPoints=points; 50 } 51 52 55 public JdoIndexedPilot( String name, String frontname, int points, int licenseID ) 56 { 57 mName = name; 58 mFirstName = frontname; 59 mPoints = points; 60 mLicenseID = licenseID; 61 } 62 63 64 public int getPoints() 65 { 66 return mPoints; 67 } 68 69 public void setPoints( int points ) 70 { 71 mPoints = points; 72 } 73 74 public void addPoints(int points) 75 { 76 this.mPoints+=points; 77 } 78 79 public String getName() 80 { 81 return mName; 82 } 83 84 public void setName( String name ) 85 { 86 mName = name; 87 } 88 89 public String getFrontName() 90 { 91 return mFirstName; 92 } 93 94 public void setFrontName( String firstname ) 95 { 96 mFirstName = firstname; 97 } 98 99 public int getLicenseID() 100 { 101 return mLicenseID; 102 } 103 104 public void setLicenseID( int id ) 105 { 106 mLicenseID = id; 107 } 108 109 public String toString() 110 { 111 return mName+"/"+mPoints; 112 } 113 114 public long checkSum() { 115 return getPoints(); 116 } 117 118 } 119 | Popular Tags |