Exemplo n.º 1
0
 /**
  * @param patterns
  * @return ????
  */
 public Vector<EventSequence> postProcessing(Vector<EventSequence> patterns) {
   Vector<EventSequence> vec = new Vector<EventSequence>();
   for (int i = 0; i < patterns.size(); i++) {
     EventSequence s = patterns.elementAt(i);
     if (postAccepts(s)) vec.addElement(s);
   }
   return vec;
 }
Exemplo n.º 2
0
 /**
  * @param set
  * @param alphabet
  * @param tax
  * @return a vector with elements???
  */
 protected Vector<Element> getParents(ItemSet set, Vector<Element> alphabet, Taxonomy tax) {
   Vector<Element> v = new Vector<Element>(0);
   for (int i = 0; i < set.size(); i++) {
     Element el = set.elementAt(i);
     int found = m_tdm.m_contentC.m_taxonomy.getParentOf(el, alphabet);
     if (-1 != found) {
       Element p = alphabet.elementAt(found);
       if (-1 == v.indexOf(p)) v.addElement(p);
     }
   }
   return v;
 }