Book a Demo

Author Topic: State machine code generation doesn't work (Exampl  (Read 2449 times)

JohannK

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
State machine code generation doesn't work (Exampl
« on: March 30, 2015, 06:32:06 pm »
Hello,

When I open the example in "Learning Center -> Software Engineering -> Behavioral Code Generation" and execute "Code Engineering -> Generate Code" on the class DataProcessor I only get the code for the class but not for the state machine. I'm using EA11.

Do you know why EA doesn't generate the SM-code?

Thanks for your help!

JohannK



Here is the generated code:


///////////////////////////////////////////////////////////
//  DataProcessor.cs
//  Implementation of the Class DataProcessor
//  Generated by Enterprise Architect
//  Created on:      30-Mrz-2015 09:29:33
//  Original author: Chuck Wilson
///////////////////////////////////////////////////////////

using System;
using System.Collections.Generic;
using System.Text;
using System.IO;



public class DataProcessor {

      public class USBDevice {

            public USBDevice(){

            }

            ~USBDevice(){

            }

            public void CLEAR_FEATURE(){

            }

            ///
            /// <param name="iNoOfBytes"></param>
            public string GET_CONFIGURATION(int iNoOfBytes){

                  return "";
            }

            ///
            /// <param name="iNoOfBytes"></param>
            public string GET_DESCRIPTOR(int iNoOfBytes){

                  return "";
            }

            public void GET_STATUS(){

            }

            public void RESET(){

            }

            ///
            /// <param name="dAddress"></param>
            public void SET_ADDRESS(double dAddress){

            }

            ///
            /// <param name="uDescriptor"></param>
            public void SET_CONFIGURATION(long uDescriptor){

            }

            ///
            /// <param name="uDescriptor"></param>
            public void SET_DESCRIPTOR(long uDescriptor){

            }

            ///
            /// <param name="iFeatureNo"></param>
            public void SET_FEATURE(int iFeatureNo){

            }

      }//end USBDevice

      /// <summary>
      /// end USBDevice
      /// </summary>
      private bool bDataRead;
      private bool bPoll;
      private bool bValid;
      private int iBytesReceived;
      private StreamWriter sw;

      public DataProcessor(){

      }

      ~DataProcessor(){

      }

      public void doReadSerialPort(){

      }

      public void doReadUSB(){

      }

      public void readNextByte(){

            //ReadNextByte
      }

}//end DataProcessor

JohannK

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: State machine code generation doesn't work (Ex
« Reply #1 on: March 30, 2015, 06:59:38 pm »
OK it seems that this feature is not supported in EA Corporate Edition.