Changeset 2 for trunk/EventBenchCore/src/de/ugoe/cs
- Timestamp:
- 04/08/11 10:17:19 (14 years ago)
- Location:
- trunk/EventBenchCore/src/de/ugoe/cs/eventbench
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/EventBenchCore/src/de/ugoe/cs/eventbench/data/Event.java
r1 r2 26 26 27 27 28 29 30 28 private String idInfo = null; 31 29 … … 46 44 return false; 47 45 } 46 } 47 48 @Override 49 public String toString() { 50 return getStandardId(); 48 51 } 49 52 -
trunk/EventBenchCore/src/de/ugoe/cs/eventbench/markov/MarkovModel.java
r1 r2 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 60 48 public List<? extends Event<?>> randomSequence() { 61 49 List<Event<?>> sequence = new LinkedList<Event<?>>(); … … 64 52 sequence.add(currentState.getAction()); 65 53 } 66 System.out.println(currentState.getId());67 54 while(!currentState.equals(endState)) { 68 55 currentState = currentState.getNextState(); … … 70 57 sequence.add(currentState.getAction()); 71 58 } 72 System.out.println(currentState.getId());73 59 } 74 60 return sequence;
Note: See TracChangeset
for help on using the changeset viewer.