Examples of StateMachine


Examples of org.apache.mina.statemachine.StateMachine

                    }
                })).create(IoHandler.class, sm);
    }
   
    private static IoFilter createAuthenticationIoFilter() {
        StateMachine sm = StateMachineFactory.getInstance(
                IoFilterTransition.class).create(AuthenticationHandler.START,
                new AuthenticationHandler());

        return new StateMachineProxyBuilder().setStateContextLookup(
                new IoSessionStateContextLookup(new StateContextFactory() {
View Full Code Here

Examples of org.eclipse.uml2.StateMachine

    protected java.lang.Object handleGetStateMachineContext()
    {
        // TODO: What should this method return ?
      // As I've seen in uml1.4 impl, it should return the statemachine which this element is the context for.
      // Let's say for UML2: Return the owner if the latter is a StateMachine
      StateMachine stateMachine = null;
        Element owner = this.metaObject.getOwner();
        if(owner instanceof StateMachine)
        {
          stateMachine = (StateMachine) owner;
        }
View Full Code Here

Examples of org.eclipse.uml2.StateMachine

    /**
     * @see org.andromda.metafacades.uml.UseCaseFacade#getFirstActivityGraph()
     */
    protected java.lang.Object handleGetFirstActivityGraph()
    {
        StateMachine activityGraph = null;
        Collection behaviors = new ArrayList();
        behaviors.addAll(this.metaObject.getOwnedBehaviors()); // For MD11.5
        behaviors.addAll(this.metaObject.getOwnedStateMachines()); // For RSM
        for (final Iterator iterator = behaviors.iterator(); iterator.hasNext() && activityGraph == null;)
        {
View Full Code Here

Examples of org.eclipse.uml2.uml.StateMachine

  private void handleComboStateMachinesEvent()
  {
    comboClasses.removeAll();
    if(!(comboStateMachines.getSelectionIndex() == -1))
    {
      StateMachine oStateMachine = getName2StateMachine().get(comboStateMachines.getItem(comboStateMachines.getSelectionIndex()));
      // add all names
      for(String nString : getStateMachine2Name2Class().get(oStateMachine).keySet()) {
        comboClasses.add(nString);
      }
      // select the context class
View Full Code Here

Examples of org.eclipse.uml2.uml.StateMachine

 
  private void handleComboClassesEvent()
  {
    if(!((comboStateMachines.getSelectionIndex() == -1) || (comboClasses.getSelectionIndex() == -1)))
    {
      StateMachine oStateMachine = getName2StateMachine().get(comboStateMachines.getItem(comboStateMachines.getSelectionIndex()));
      Configuration.putContextClass(oStateMachine, getStateMachine2Name2Class().get(oStateMachine).get(
          comboClasses.getItem(comboClasses.getSelectionIndex())));
    }
  }
View Full Code Here

Examples of org.eclipse.uml2.uml.StateMachine

  private void handleComboStateMachinesEvent()
  {
    comboClasses.removeAll();
    if(!(comboStateMachines.getSelectionIndex() == -1))
    {
      StateMachine oStateMachine = getName2StateMachine().get(comboStateMachines.getItem(comboStateMachines.getSelectionIndex()));
     
      for(String nString : getStateMachine2Name2Class().get(oStateMachine).keySet())
      {
        comboClasses.add(nString);
        org.eclipse.uml2.uml.Class oClass = Configuration.getContextClass(oStateMachine);
View Full Code Here

Examples of org.eclipse.uml2.uml.StateMachine

 
  private void handleComboClassesEvent()
  {
    if(!((comboStateMachines.getSelectionIndex() == -1) || (comboClasses.getSelectionIndex() == -1)))
    {
      StateMachine oStateMachine = getName2StateMachine().get(comboStateMachines.getItem(comboStateMachines.getSelectionIndex()));
      Configuration.putContextClass(oStateMachine, getStateMachine2Name2Class().get(oStateMachine).get(
          comboClasses.getItem(comboClasses.getSelectionIndex())));
    }
  }
View Full Code Here

Examples of org.eclipse.uml2.uml.StateMachine

    try {
      Configuration.setLoggerLevel(Configuration.LoggerLevel.MINIMUM);
      Configuration
          .setExceptionTarget(Configuration.ExceptionTarget.MESSAGEBOX);
     
      StateMachine oStateMachine = prepareTestGeneration();

      //IntegerValueType.setMinimum(-1000);
      //IntegerValueType.setMaximum(1000);
      //DoubleValueType.setMinimum(-1000.0);
      //DoubleValueType.setMaximum(1000.0);
View Full Code Here

Examples of org.eclipse.uml2.uml.StateMachine

   
    // The original UML File
    umlFile = ResourceUtil.getFile(editor.getEditorInput());
    project = umlFile.getProject();
   
    StateMachine oStateMachine = null;
    if (sel instanceof IStructuredSelection) {
      IStructuredSelection oSelection = (IStructuredSelection) sel;

      // derive state machine from 2 different sources ...
View Full Code Here

Examples of org.eclipse.uml2.uml.StateMachine

    //Open the selected file as UML
    URI uri = URI.createFileURI(oFile.getLocationURI().getPath());
    ResourceSet resSet = new ResourceSetImpl();
    UMLResourcesUtil.init(resSet); // MDT/UML2 4.0.0 (Juno)
    Resource resource = resSet.getResource(uri, true);
    StateMachine oRetValue = null;
   
    //find the first instance of a StateMachine inside the UML file
    TreeIterator<EObject> it = resource.getAllContents();
    while (it.hasNext()) {
      EObject o = it.next();
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.