Class FMI20ModelInstance

  • Direct Known Subclasses:
    FMI20ModelInstance.ByReference, FMI20ModelInstance.ByValue

    public class FMI20ModelInstance
    extends com.sun.jna.Structure
    A Java Native Access (JNA) interface to the Functional Mock-up Interface 2.0 ModelInstance struct.
    Since:
    Ptolemy II 10.0
    Version:
    $Id$
    Author:
    Christopher Brooks
    Pt.AcceptedRating:
    Red (cxh)
    Pt.ProposedRating:
    Red (cxh)
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  FMI20ModelInstance.ByReference
      Access the structure by reference.
      static class  FMI20ModelInstance.ByValue
      Access the structure by value.
      • Nested classes/interfaces inherited from class com.sun.jna.Structure

        com.sun.jna.Structure.StructField
    • Field Summary

      Fields 
      Modifier and Type Field Description
      com.sun.jna.ptr.IntByReference b
      C type : int*.
      com.sun.jna.Pointer componentEnvironment
      C type : fmi2ComponentEnvironment.
      FMI20EventInfo eventInfo
      C type : fmi2EventInfo.
      com.sun.jna.Pointer functions
      C type : const fmi2CallbackFunctions*.
      com.sun.jna.ptr.PointerByReference GUID
      C type : const char**.
      com.sun.jna.ptr.IntByReference i
      C type : int*.
      com.sun.jna.ptr.PointerByReference instanceName
      C type : const char**.
      int isDirtyValues
      1 if the values are dirty.
      com.sun.jna.ptr.IntByReference isPositive
      C type : int*.
      int[] logCategories
      C type : int[4].
      int loggingOn
      True if logging is on.
      com.sun.jna.ptr.DoubleByReference r
      C type : double*.
      com.sun.jna.ptr.PointerByReference s
      C type : const char**.
      int state
      The state of the model.
      double time
      The time.
      int type
      The type.
      • Fields inherited from class com.sun.jna.Structure

        ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
    • Constructor Summary

      Constructors 
      Constructor Description
      FMI20ModelInstance()
      Instantiate a Java structure that that represents the C structure that contains information about events.
      FMI20ModelInstance​(com.sun.jna.Pointer peer)
      Instantiate a Java structure that that represents the C structure that contains information about events.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.util.List<?> getFieldOrder()  
      • Methods inherited from class com.sun.jna.Structure

        allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, clear, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setFieldOrder, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • r

        public com.sun.jna.ptr.DoubleByReference r
        C type : double*.
      • i

        public com.sun.jna.ptr.IntByReference i
        C type : int*.
      • b

        public com.sun.jna.ptr.IntByReference b
        C type : int*.
      • s

        public com.sun.jna.ptr.PointerByReference s
        C type : const char**.
      • isPositive

        public com.sun.jna.ptr.IntByReference isPositive
        C type : int*.
      • time

        public double time
        The time.
      • instanceName

        public com.sun.jna.ptr.PointerByReference instanceName
        C type : const char**.
      • type

        public int type
        The type. C type : fmi2Type
      • GUID

        public com.sun.jna.ptr.PointerByReference GUID
        C type : const char**.
      • functions

        public com.sun.jna.Pointer functions
        C type : const fmi2CallbackFunctions*.
      • loggingOn

        public int loggingOn
        True if logging is on.
      • logCategories

        public int[] logCategories
        C type : int[4].
      • componentEnvironment

        public com.sun.jna.Pointer componentEnvironment
        C type : fmi2ComponentEnvironment.
      • state

        public int state
        The state of the model. C type : ModelState
      • isDirtyValues

        public int isDirtyValues
        1 if the values are dirty.
    • Constructor Detail

      • FMI20ModelInstance

        public FMI20ModelInstance()
        Instantiate a Java structure that that represents the C structure that contains information about events.
      • FMI20ModelInstance

        public FMI20ModelInstance​(com.sun.jna.Pointer peer)
        Instantiate a Java structure that that represents the C structure that contains information about events.
        Parameters:
        peer - The peer
    • Method Detail

      • getFieldOrder

        protected java.util.List<?> getFieldOrder()
        Specified by:
        getFieldOrder in class com.sun.jna.Structure