1 15 package org.apache.tapestry.wap.quiz; 16 17 import java.io.Serializable ; 18 19 26 27 public class Visit implements Serializable 28 { 29 private String username; 30 private String level; 31 private int points; 32 private int questionSet; 33 private int numberOfQuestions; 34 35 public void initialize(String username, String level, int questionSet, int numberOfQuestions) 36 { 37 this.username = username; 38 this.level = level; 39 this.questionSet = questionSet; 40 this.numberOfQuestions = numberOfQuestions; 41 points = 0; 42 } 43 44 public int getNumberOfQuestions() 45 { 46 return numberOfQuestions; 47 } 48 49 public void setNumberOfQuestions(int numberOfQuestions) 50 { 51 this.numberOfQuestions = numberOfQuestions; 52 } 53 54 public int getQuestionSet() 55 { 56 return questionSet; 57 } 58 59 public void setQuestionSet(int questionSet) 60 { 61 this.questionSet = questionSet; 62 } 63 64 public void incPoints() 65 { 66 points++; 67 } 68 69 public int getPoints() 70 { 71 return points; 72 } 73 74 public void setPoints(int points) 75 { 76 this.points = points; 77 } 78 79 public String getLevel() 80 { 81 return level; 82 } 83 84 public void setLevel(String level) 85 { 86 this.level = level; 87 } 88 89 public String getUsername() 90 { 91 return username; 92 } 93 94 public void setUsername(String user) 95 { 96 this.username = user; 97 } 98 99 } 100 | Popular Tags |