Changeset 70 for trunk


Ignore:
Timestamp:
06/16/11 10:32:32 (14 years ago)
Author:
sherbold
Message:

added getStateStrings() to interface de.ugoe.cs.eventbench.models.IStochasticProcess and implementing classes

Location:
trunk/EventBenchCore/src/de/ugoe/cs/eventbench/models
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/EventBenchCore/src/de/ugoe/cs/eventbench/models/IStochasticProcess.java

    r66 r70  
    1010         
    1111        public int getNumStates(); 
     12         
     13        public String[] getStateStrings(); 
    1214 
    1315} 
  • trunk/EventBenchCore/src/de/ugoe/cs/eventbench/models/TrieBasedModel.java

    r66 r70  
    8989                return trie.getNumSymbols(); 
    9090        } 
     91         
     92        public String[] getStateStrings() { 
     93                String[] stateStrings = new String[getNumStates()]; 
     94                int i=0; 
     95                for( Event<?> symbol : trie.getKnownSymbols() ) { 
     96                        stateStrings[i] = symbol.toString(); 
     97                        i++; 
     98                } 
     99                return stateStrings; 
     100        } 
    91101 
    92102} 
Note: See TracChangeset for help on using the changeset viewer.