Changeset 66
- Timestamp:
- 04/17/2009 03:53:26 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
AgentMind/trunk/AgentMind/FAtiMA/src/FAtiMA/memory/Memory.java
r37 r66 200 200 bindingSets = (MatchLiteralList(name.GetLiteralList(), 0, KnowledgeBase.GetInstance().GetKnowledgeBase())); 201 201 else 202 if (MatchLiteralList(name.GetLiteralList(), 0, KnowledgeBase.GetInstance().GetKnowledgeBase()) != null) 203 bindingSets.addAll(MatchLiteralList(name.GetLiteralList(), 0, KnowledgeBase.GetInstance().GetKnowledgeBase())); 202 { 203 ArrayList bindingSets2 = MatchLiteralList(name.GetLiteralList(), 0, KnowledgeBase.GetInstance().GetKnowledgeBase()); 204 if (bindingSets2 != null) 205 { 206 ListIterator li = bindingSets2.listIterator(); 207 208 synchronized (this) { 209 while (li.hasNext()) { 210 211 SubstitutionSet ss = (SubstitutionSet) li.next(); 212 if( !bindingSets.contains(ss) ) 213 bindingSets.add(ss); 214 } 215 } 216 } 217 } 204 218 205 219 return bindingSets;
Note: See TracChangeset
for help on using the changeset viewer.