Package org.woped.core.model.petrinet

Examples of org.woped.core.model.petrinet.TransitionResourceModel


            .getTransResource(), true);
      }

      if (transition.getParent() instanceof GroupModel) {
        GroupModel group = (GroupModel) transition.getParent();
        TransitionResourceModel transResourceModell = ((PetriNetModelProcessor) getModelProcessor())
            .newTransResource(map);

        transResourceModell.setPosition(map.getResourcePosition().x,
            map.getResourcePosition().y);
        ParentMap pm = new ParentMap();
        pm.addEntry(transResourceModell, group);
        HashMap<GroupModel, AttributeMap> hm = new HashMap<GroupModel, AttributeMap>();
        hm.put(group, group.getAttributes());
View Full Code Here


          if (tm.hasTrigger()) {
            TriggerModel trigMod = tm.getToolSpecific().getTrigger();
            trigMod.setPosition(trigMod.getX() + moveX, trigMod.getY() + moveY);
          }
          if (tm.hasResource()) {
            TransitionResourceModel transRes = tm.getToolSpecific().getTransResource();
            transRes.setPosition(transRes.getX() + moveX, transRes.getY() + moveY);
          }
        }
      }
    }
    // move arcs
View Full Code Here

   
    taskAlloc2 = new AllocationTable();
   
    while (tasks.hasNext()){
      TransitionModel transMod = (TransitionModel)tasks.next();
      TransitionResourceModel resMod = transMod.getToolSpecific().getTransResource();
     
      ArrayList<String> rNames = new ArrayList<String>();
      ArrayList<String> gNames = new ArrayList<String>();
      if (resMod != null){
        rNames.add(resMod.getTransRoleName());
        gNames.add(resMod.getTransOrgUnitName());
      }
     
      String tsk = transMod.getNameValue() + " (" + transMod.getId() + ")";
     
      taskAlloc2.getTable().put(tsk, new AllocationTableItem(tsk, rNames, gNames));
View Full Code Here

    }
  }

  void addResource(AbstractPetriNetElementModel el, SimNode n) {
    TransitionModel tm = (TransitionModel) el;
    TransitionResourceModel resMod = tm.getToolSpecific().getTransResource();
    if (resMod != null) {
      n.setrole(resMod.getTransRoleName());
      n.setgroup(resMod.getTransOrgUnitName());
      n.setHasResource(true);
    }else{
      TriggerModel t = tm.getToolSpecific().getTrigger();
      if ((t!=null)&&(t.getTriggertype()!=TriggerModel.TRIGGER_RESOURCE))           
        n.settime(0);
View Full Code Here

TOP

Related Classes of org.woped.core.model.petrinet.TransitionResourceModel

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.