Package java.util

Examples of java.util.LinkedList.clear()


                    TypedActor[] actors = state.getRefinement();
                    Receiver[][] allReceiversArray = new Receiver[allReceivers.length][0];

                    for (int i = 0; i < allReceivers.length; ++i) {
                        resultsList.clear();

                        for (int j = 0; j < allReceivers[i].length; ++j) {
                            Receiver receiver = allReceivers[i][j];
                            Nameable cont = receiver.getContainer()
                                    .getContainer();
View Full Code Here


                // Find set of minimax actors.
                if (status == ActorEnablingStatus.ENABLED_DEFERRABLE) {
                    int newSize = actorInfo.maximumNumberOfTokens;

                    if (newSize < minimaxSize) {
                        minimaxActors.clear();
                        minimaxActors.add(actor);
                        minimaxSize = newSize;
                    } else if (newSize == minimaxSize) {
                        minimaxActors.add(actor);
                    }
View Full Code Here

  for (ListIterator iter=removeList.listIterator();iter.hasNext();) {
      info= (RtpiSourceInfo) remoteParticipants.remove((Integer) iter.next());
      recipient.removeSource(this, info);
      members--;
  }
  removeList.clear();

  for (Enumeration iter=deletedParticipants.keys();iter.hasMoreElements();) {
      pid = (Integer) iter.nextElement();
      info = (RtpiSourceInfo) deletedParticipants.get(pid);
      if (info.timedOut(currentDeterministicTransmissionInterval*timeoutByeIntervals)) {
View Full Code Here

      }
  }
  for (ListIterator iter=removeList.listIterator();iter.hasNext();) {
      deletedParticipants.remove((Integer) iter.next());
  }
  removeList.clear();

  // Timing out subcomponents

  Long subID;
  SubcomponentInfo sinfo;
View Full Code Here

    !localActiveSubcomponents.containsKey(subID)) {
    //System.out.println("remove sub 1");
    recipient.removeSubcomponent(this, subID.longValue());
      }
  }
  removeList.clear();

  for (Enumeration iter=remoteActiveSubcomponents.keys();iter.hasMoreElements();) {
      subID = (Long) iter.nextElement();
      sinfo = (SubcomponentInfo) remoteActiveSubcomponents.get(subID);
      if (sinfo.timedOut(currentDeterministicTransmissionInterval*timeoutIntervalsSubcomponent)) {
View Full Code Here

        recipient.deactivateSubcomponent(this, subID.longValue());
    }
      }
  }

  removeList.clear();

    }

    private RtcpiSourceDescriptionPacket constructSdesPacket() throws IllegalValueException {
  LinkedList itemList=new LinkedList();
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

    private void cleanupConfigurations(List configurations) {
        LinkedList cannotBeDeletedList = new LinkedList();
        for (Iterator iterator = configurations.iterator(); iterator.hasNext();) {
            ConfigurationData configurationData = (ConfigurationData) iterator.next();
            File dir = configurationData.getConfigurationDir();
            cannotBeDeletedList.clear();
            if (!DeploymentUtil.recursiveDelete(dir,cannotBeDeletedList)) {
                // Output a message to help user track down file problem
                log.warn("Unable to delete " + cannotBeDeletedList.size() +
                        " files while recursively deleting directory "
                        + dir + LINE_SEP +
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

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

    /**
     * @param step
     *            [inout]
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.