• DocumentCode
    524451
  • Title

    Implementing statecharts using Java enums

  • Author

    Ali, Jauhar

  • Author_Institution
    Coll. of Eng. & Comput. Sci., Abu Dhabi Univ., Abu Dhabi, United Arab Emirates
  • Volume
    4
  • fYear
    2010
  • fDate
    22-24 June 2010
  • Abstract
    Statechart, which is one of the important diagrams in Unified Modeling Language (UML), represents reactive behavior of a class of objects. Implementing statecharts has been difficult for programmers because the commonly used object-oriented programming languages do not support statecharts at the language level. In this study, we present a new approach to implement statecharts using Java enums. Each state is represented as an enum-value. The whole statechart behavior is encapsulated within the Statechart class. This class is nested inside the owner class of the statechart. The resulting code is object-oriented, efficient and well-structured.
  • Keywords
    Java; Unified Modeling Language; Java enums; enum-value; object-oriented programming languages; statecharts; unified modeling language; Computer science; Computer science education; Educational institutions; Educational technology; Java; Object oriented modeling; Object oriented programming; Power system modeling; Programming profession; Unified modeling language; Java; Object Oriented Programming; Statecharts; UML;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Education Technology and Computer (ICETC), 2010 2nd International Conference on
  • Conference_Location
    Shanghai
  • Print_ISBN
    978-1-4244-6367-1
  • Type

    conf

  • DOI
    10.1109/ICETC.2010.5529651
  • Filename
    5529651