Changeset 553 for trunk/quest-core-usageprofiles
- Timestamp:
- 08/16/12 16:08:48 (12 years ago)
- Location:
- trunk/quest-core-usageprofiles/src/main/java/de/ugoe/cs/quest/usageprofiles
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/quest-core-usageprofiles/src/main/java/de/ugoe/cs/quest/usageprofiles/FirstOrderMarkovModel.java
r547 r553 103 103 List<Integer> endIndexList = new LinkedList<Integer>(); 104 104 for( int i=0 ; i<knownSymbols.size() ; i++ ) { 105 String id = knownSymbols.get(i).get StandardId();106 if( id.equals(Event.STARTEVENT.get StandardId()) || id.contains(Event.STARTEVENT.getStandardId()+"-=-") ) {105 String id = knownSymbols.get(i).getId(); 106 if( id.equals(Event.STARTEVENT.getId()) || id.contains(Event.STARTEVENT.getId()+"-=-") ) { 107 107 startIndexList.add(i); 108 108 } 109 if( id.equals(Event.ENDEVENT.get StandardId()) || id.contains("-=-"+Event.ENDEVENT.getStandardId()) ) {109 if( id.equals(Event.ENDEVENT.getId()) || id.contains("-=-"+Event.ENDEVENT.getId()) ) { 110 110 endIndexList.add(i); 111 111 } … … 176 176 trie.getKnownSymbols()); 177 177 for (Event symbol : knownSymbols) { 178 final String thisSaneId = symbol.get ShortId().replace("\"", "\\\"")178 final String thisSaneId = symbol.getId().replace("\"", "\\\"") 179 179 .replaceAll("[\r\n]", ""); 180 180 stringBuilder.append(" " + knownSymbols.indexOf(symbol) + " [label=\"" … … 210 210 211 211 for (Event symbol : knownSymbols) { 212 String from = symbol.get ShortId();212 String from = symbol.getId(); 213 213 List<Event> context = new ArrayList<Event>(); 214 214 context.add(symbol); … … 217 217 218 218 for (Event follower : followers) { 219 String to = follower.get ShortId();219 String to = follower.getId(); 220 220 MarkovEdge prob = new MarkovEdge(getProbability(context, 221 221 follower)); -
trunk/quest-core-usageprofiles/src/main/java/de/ugoe/cs/quest/usageprofiles/ModelFlattener.java
r547 r553 6 6 7 7 import de.ugoe.cs.quest.eventcore.Event; 8 import de.ugoe.cs.quest.eventcore. ReplayableEvent;8 import de.ugoe.cs.quest.eventcore.StringEventType; 9 9 10 10 /** … … 101 101 List<String> parentIDs, int depth) { 102 102 for (TrieNode<Event> child : currentNode.getChildren()) { 103 String currentId = child.getSymbol().get StandardId();103 String currentId = child.getSymbol().getId(); 104 104 if (depth > 1) { 105 105 List<String> childParentIDs = new LinkedList<String>(parentIDs); … … 114 114 firstOrderID.append(currentId); 115 115 TrieNode<Event> firstOrderNode = firstOrderTrie 116 .getChildCreate(new Event <Object>(firstOrderID117 .toString())) ;116 .getChildCreate(new Event(new StringEventType(firstOrderID 117 .toString()))); 118 118 firstOrderNode.setCount(child.getCount()); 119 119 for (TrieNode<Event> transitionChild : child.getChildren()) { … … 125 125 transitionID.append(currentId + EVENT_SEPARATOR); 126 126 transitionID.append(transitionChild.getSymbol() 127 .get StandardId());127 .getId()); 128 128 TrieNode<Event> firstOrderTransitionChild = firstOrderNode 129 .getChildCreate(new Event <Object>(transitionID130 .toString())) ;129 .getChildCreate(new Event(new StringEventType(transitionID 130 .toString()))); 131 131 firstOrderTransitionChild.setCount(transitionChild 132 132 .getCount());
Note: See TracChangeset
for help on using the changeset viewer.