add timestamp to output
[rmh3093.git] / motsim / Participant.java
blob6da87633671c6cadef91bbe85c2c31d69244df2e
1 import java.util.ArrayList;
3 /**
4 * Participant.java
5 * motsim
6 */
8 /*
9 Copyright (c) 2008, Ryan M. Hope
10 All rights reserved.
12 Redistribution and use in source and binary forms, with or without modification,
13 are permitted provided that the following conditions are met:
15 * Redistributions of source code must retain the above copyright notice,
16 this list of conditions and the following disclaimer.
17 * Redistributions in binary form must reproduce the above copyright notice,
18 this list of conditions and the following disclaimer in the documentation
19 and/or other materials provided with the distribution.
20 * Neither the name of the project nor the names of its contributors may be
21 used to endorse or promote products derived from this software without
22 specific prior written permission.
24 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
25 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
26 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
27 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
28 ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
29 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
30 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
31 ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
33 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 public class Participant {
38 String fullname, email, gender, primary_hand, good_vision;
39 int age;
40 ArrayList<Integer> trialResults;
42 public Participant(String fullname, String email, String gender,
43 String primary_hand, String good_vision, int age) {
44 this.fullname = fullname;
45 this.email = email;
46 this.gender = gender;
47 this.primary_hand = primary_hand;
48 this.age = age;
49 this.good_vision = good_vision;
50 trialResults = new ArrayList<Integer>();