示例#1
0
 public void add(StateExportItem newItem)
 {
     StateExportNode temp=first;
     this.count++;
     if(first==null)
     {
         first=new StateExportNode(newItem);
         return;
     }
     while(temp.next!=null)
     {
         temp=temp.next;
     }
     temp.next=new StateExportNode(newItem);
 }
示例#2
0
 private bool addStateExport(int stateNumber,StateExportItem newExport)
 {
     StateNode temp = first;
     if(stateNumber <0)
         return false;
     if(count < stateNumber )
         return false;
     for(int i=1; i< stateNumber ;i++)
         temp = temp.next;
     temp.exports.add(newExport);
     return true;
 }
示例#3
0
 public StateExportNode(StateExportItem newItem)
 {
     next = null;
     data = newItem;
 }