Skip to main content

Code Generation

  • Chapter
  • First Online:
Book cover Guide to Distributed Simulation with HLA

Part of the book series: Simulation Foundations, Methods and Applications ((SFMA))

  • 832 Accesses

Abstract

It is a known observation that federate applications involve large amounts of boilerplate code. Code generation is an effective technique that helps with rapid prototyping of a federation. Code generation can be seen as a model-to-text transformation, which takes a federation architecture as the source model and transforms it to an executable code for a target environment. In this chapter, we show you how code generation for each federate application in a federation architecture can be done using SimGe. The target environment is C# and .NET with RACoN platform as the abstraction layer for the RTI.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 54.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 69.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 99.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    The use of “class” word can be confusing in this chapter. When we use “class” in the text, we need to make sure to distinct that it is used either in the sense of programming language concept or in the sense of HLA terminology. From now on (throughout the rest of the chapters), we reserve the “class” term to refer a class in object-oriented programming, a code template for creating objects, for instance, a federate class for the generated code. Nevertheless, to make the distinction, we use “HLA class,” when we are referring to an object class or to an interaction class of an object model.

References

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Okan Topçu .

Rights and permissions

Reprints and permissions

Copyright information

© 2017 Springer International Publishing AG

About this chapter

Cite this chapter

Topçu, O., Oğuztüzün, H. (2017). Code Generation. In: Guide to Distributed Simulation with HLA. Simulation Foundations, Methods and Applications. Springer, Cham. https://doi.org/10.1007/978-3-319-61267-6_6

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-61267-6_6

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-61266-9

  • Online ISBN: 978-3-319-61267-6

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics