Package java.util

Examples of java.util.LinkedList.clear()


                todoList.addLast(parent);
            }
        }
        transSet.clear();
        stateSet.clear();
        todoList.clear();
    }

    /**
     * @param step
     *            [inout]
View Full Code Here


        }
        // apply event + guard condition filter
        step.getTransitList().removeAll(removeList);
        // cleanup temporary structures
        allEvents.clear();
        removeList.clear();
        // optimization - global precedence potentially applies
        // only if there are multiple enabled transitions
        if (step.getTransitList().size() > 1) {
            // global transition precedence check
            Object[] trans = step.getTransitList().toArray();
View Full Code Here

                        l_minuendXs.clear();
                        l_minuendYs.clear();
                        l_subtrahendXs.clear();
                        l_subtrahendYs.clear();
                        l_polygonXs.clear();
                        l_polygonYs.clear();

                        b_colinear = false;

                        // set new starting point for the polygon
                        boolean b_useMinuend = ((l_x3 <= l_x1)
View Full Code Here

                l_minuendXs.clear();
                l_minuendYs.clear();
                l_subtrahendXs.clear();
                l_subtrahendYs.clear();
                l_polygonXs.clear();
                l_polygonYs.clear();

                // set the maxY and minY values to intersect y-value
                double l_y       = l_intersectY.doubleValue();
                l_minuendMaxY    = l_y;
                l_subtrahendMaxY = l_y;
View Full Code Here

        recentPaths.add(0, PATH3);
        recentPaths.remove(2);
        assertEquals(recentPaths, timeLoggingModel.getRecentPaths());
       
        eventsReceived.clear();
        recentPaths.clear();
        recentPaths.add("foo");
        recentPaths.add("bar");
        recentPaths.add("baz");
        timeLoggingModel.setRecentPaths(recentPaths);
        assertPropertyChangeEvent(timeLoggingModel,
View Full Code Here

                {
                    // ignore
                }
            }

            connectionList.clear();

            manager.release( (Component)ds );
        }

        assertTrue( "Exception was not thrown when too many datasource components were retrieved.", this.m_isSuccessful );
View Full Code Here

      if (buffer.length() > 0) {
        result.add(buffer.toString());
      }
    } catch (IOException e) {
      log.error("Error parsing function: " + value, e);
      result.clear();
      result.add(value);
    }
    if (result.size() == 0) {
      result.add("");
    }
View Full Code Here

  assertTrue(proc3.steps().size() == 3);
  Iterator it = proc2.steps().iterator();
  List acts = new LinkedList();
  while (it.hasNext()) {
      act = (WrappedActivity)it.next();
      acts.clear();
      if (act.name().equals("ACT1")) {
    assertTrue(act.priority() == 1);
    assertTrue(act.description()
         .equals("Activity with dummy implementation"));
    assertTrue(act.assignments().size() == 0);
View Full Code Here

  assertTrue(proc.steps().size() == 9);
  Iterator it = proc.steps().iterator();
  List acts = new LinkedList();
  while (it.hasNext()) {
      WrappedActivity act = (WrappedActivity)it.next();
      acts.clear();
      if (act.name().equals("ACT1")) {
    assertTrue(act.priority() == 1);
    assertTrue(act.description()
         .equals("Activity with dummy implementation"));
    assertTrue(act.assignments().size() == 0);
View Full Code Here

  assertTrue(proc.steps().size() == 15);
  Iterator it = proc.steps().iterator();
  List acts = new LinkedList();
  while (it.hasNext()) {
      WrappedActivity act = (WrappedActivity)it.next();
      acts.clear();
      if (act.name().equals("S1A1")) {
    assertTrue(act.nextActivities().size() == 2);
    acts.add("S1A3");
    acts.add("S1A4");
    assertTrue(activitiesIncluded(act.nextActivities(), acts));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.