Package org.mitre.sim

Examples of org.mitre.sim.Entity


  protected IdentityHashMap compute() {
    IdentityHashMap patrimony = parent.compute();
    IdentityHashMap partialDB = new IdentityHashMap();
    for (Iterator i = patrimony.keySet().iterator(); i.hasNext(); ) {
      Entity e = (Entity)i.next();
      if (!filter.passesFilter(e)) partialDB.put(e, null);
    }
    return partialDB;
  }
View Full Code Here


  protected IdentityHashMap compute() {
    IdentityHashMap patrimony = parent.compute();
    IdentityHashMap partialDB = new IdentityHashMap();
    for (Iterator i = patrimony.keySet().iterator(); i.hasNext(); ) {
      Entity e = (Entity)i.next();
      if (filter.passesFilter(e)) partialDB.put(e, null);
    }
    return partialDB;
  }
View Full Code Here

  protected IdentityHashMap compute() {
    Set lpDB = myExec.getLogicalProcesses();
    IdentityHashMap partialDB = new IdentityHashMap();
    for (Iterator i = lpDB.iterator(); i.hasNext(); ) {
      Entity e = (Entity)i.next();
      if (baseClass.isInstance(e)) partialDB.put(e, null);
    }
    return partialDB;
  }
View Full Code Here

    @param ed EntityDelegate instance being registered
    @return Same <code>Entity</code> supplied by parameter <code>e</code>.
    @throws IllegalStateException if registration attempted after last time has been reached.
   */
  public final Entity register(EntityDelegate ed) {
    Entity e = new Entity(ed);
    e.setExecutive(exec, ed);
    ed.setEntity(e);
    return e;
  }
View Full Code Here

    @param name
    @return Same <code>Entity</code> supplied by parameter <code>e</code>.
    @throws IllegalStateException if registration attempted after last time has been reached.
   */
  public final Entity register(EntityDelegate ed, String name) {
    Entity e = new Entity(ed, name);
    e.setExecutive(exec, ed);
    ed.setEntity(e);
    return e;
  }
View Full Code Here

        if ((me.isPopupTrigger()) || (SwingUtilities.isRightMouseButton(me))) {
          DefaultMutableTreeNode node = (DefaultMutableTreeNode)tp
              .getLastPathComponent();
          if (node.isLeaf()) {
            // Inspect Entity for probe-able values
            final Entity e = ((EntityWrapper)node.getUserObject()).getEntity();
            final BeanInfo bi = probeClass(e.getClass(), Entity.class);
            if (bi != null) {
              final List propDescriptors = Arrays.asList(bi
                  .getPropertyDescriptors());
              final JList l = createList(e, propDescriptors);
              final JDialog jd = new JDialog((JFrame)SwingUtilities
View Full Code Here

TOP

Related Classes of org.mitre.sim.Entity

Copyright © 2018 www.massapicom. 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.