Ignore:
Timestamp:
04/08/11 10:17:19 (13 years ago)
Author:
sherbold
Message:

+ added toString() to Event

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/EventBenchCore/src/de/ugoe/cs/eventbench/markov/MarkovModel.java

    r1 r2  
    4646        } 
    4747         
    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          
    6048        public List<? extends Event<?>> randomSequence() { 
    6149                List<Event<?>> sequence = new LinkedList<Event<?>>(); 
     
    6452                        sequence.add(currentState.getAction()); 
    6553                } 
    66                 System.out.println(currentState.getId()); 
    6754                while(!currentState.equals(endState)) { 
    6855                        currentState = currentState.getNextState(); 
     
    7057                                sequence.add(currentState.getAction()); 
    7158                        } 
    72                         System.out.println(currentState.getId()); 
    7359                } 
    7460                return sequence; 
Note: See TracChangeset for help on using the changeset viewer.