Changeset 2 for trunk/EventBenchCore


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

+ added toString() to Event

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  
    2626 
    2727 
    28          
    29  
    3028        private String idInfo = null; 
    3129         
     
    4644                        return false; 
    4745                } 
     46        } 
     47         
     48        @Override 
     49        public String toString() { 
     50                return getStandardId(); 
    4851        } 
    4952 
  • 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.