1 26 27 package DiningPhilosophers.monolithic; 28 29 import DiningPhilosophers.*; 30 31 41 42 public class StatusInfoImpl 43 extends StatusInfo 44 { 45 51 52 public 53 StatusInfoImpl() 54 { 55 ticks_since_last_meal = 0; 56 has_left_fork = false; 57 has_right_fork = false; 58 state = PhilosopherState.DEAD; 59 name = ""; 60 } 61 62 71 public 72 StatusInfoImpl(PhilosopherState s, 73 String n, 74 int ticks, 75 boolean left_fork, 76 boolean right_fork) 77 { 78 state = s; 79 name = n; 80 ticks_since_last_meal = ticks; 81 has_left_fork = left_fork; 82 has_right_fork = right_fork; 83 } 84 } 85 | Popular Tags |