- Location:
- /trunk
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
/trunk/EventBenchCore/src/de/ugoe/cs/eventbench/data/Event.java
r3 r1 26 26 27 27 28 29 28 30 private String idInfo = null; 29 31 … … 44 46 return false; 45 47 } 46 }47 48 @Override49 public String toString() {50 return getStandardId();51 48 } 52 49 -
/trunk/EventBenchCore/src/de/ugoe/cs/eventbench/markov/MarkovModel.java
r3 r1 46 46 } 47 47 48 public void printRandomWalk() { 49 State currentState = initialState; 50 IMemory<State> history = new IncompleteMemory<State>(5); // this is NOT used here, just for testing ... 51 history.add(currentState); 52 Console.println(currentState.getId()); 53 while(!currentState.equals(endState)) { 54 currentState = currentState.getNextState(); 55 Console.println(currentState.getId()); 56 history.add(currentState); 57 } 58 } 59 48 60 public List<? extends Event<?>> randomSequence() { 49 61 List<Event<?>> sequence = new LinkedList<Event<?>>(); … … 52 64 sequence.add(currentState.getAction()); 53 65 } 66 System.out.println(currentState.getId()); 54 67 while(!currentState.equals(endState)) { 55 68 currentState = currentState.getNextState(); … … 57 70 sequence.add(currentState.getAction()); 58 71 } 72 System.out.println(currentState.getId()); 59 73 } 60 74 return sequence;
Note: See TracChangeset
for help on using the changeset viewer.