1 23 package com.tc.jrexx.set; 24 25 import com.tc.jrexx.set.ISet_char; 26 27 34 public interface IStatePro { 35 public interface ITransition { 36 public IStatePro getFromState(); 37 public ISet_char getCharSet(); 38 public IStatePro getToState(); 39 } 40 41 42 58 public interface IVisitListener { 59 60 64 public void stateVisited(IStatePro state); 65 68 public void stateVisited(IStatePro state,char ch); 69 70 public void stateUnVisited(IStatePro state); 71 } 72 73 82 public interface IChangeListener { 83 86 public void transitionAdded(IStatePro.ITransition transition); 87 90 public void transitionRemoved(IStatePro.ITransition transition); 91 94 public void isFinalChanged(IStatePro state,boolean isFinal); 95 } 96 97 public void addVisitListener(IStatePro.IVisitListener listener); 98 public boolean removeVisitListener(IStatePro.IVisitListener listener); 99 100 public void addChangeListener(IStatePro.IChangeListener listener); 101 public boolean removeChangeListener(IStatePro.IChangeListener listener); 102 103 106 public boolean isFinal(); 107 108 111 public void setFinal(boolean isFinal); 112 113 127 public IStatePro.ITransition addTransition(ISet_char charSet,IStatePro toState); 128 129 136 public boolean removeTransition(IStatePro.ITransition transition); 137 138 public void removeAllTransitions(); 139 140 public IStatePro.ITransition[] getTransitions(); 141 public IStatePro.ITransition[] getETransitions(); 142 public IStatePro.ITransition[] getAllTransitions(); 143 144 149 public StateProSet getAllReachableStates(); 150 151 155 public IState visit(); 156 157 public int getStateNumber(); 158 } | Popular Tags |