www.pudn.com > src.rar > TurnData.java, change:2009-02-15,size:721b


/**
   Thesis implementation
   Class : turnData.java
   Writen By : ZhiHai(Harris) Mo
   Student Number : 3057489
**/


import java.util.*;

public class TurnData{

      ArrayList allTurns;
      boolean empty;

      public TurnData(){
          allTurns = new ArrayList();
      }

      public ArrayList returnData(){
          return allTurns;
      }
      
      public void addIntervals(TurnInterval interval){
          allTurns.add(interval);
      }

      public void clearNodes(){
          allTurns.clear();
      }

      public boolean isEmpty(){
          empty=allTurns.isEmpty();
          return empty;
      }

      public void deleteType(int index){
           allTurns.remove(index);
      }


}