Class FMI20EventInfo

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

    public class FMI20EventInfo
    extends com.sun.jna.Structure
    Functional Mock-up Interface (FMI) 2.0 event information.

    The C language interface to Functional Mock-up Unit (FMU) files includes an structure that represents event information. This class represents that structure.

    This file is based on a file that was autogenerated by JNAerator,
    a tool written by Olivier Chafik that uses a few opensource projects..

    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  FMI20EventInfo.ByReference
      Access the structure by reference.
      static class  FMI20EventInfo.ByValue
      Access the structure by value.
      • Nested classes/interfaces inherited from class com.sun.jna.Structure

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

      Constructors 
      Constructor Description
      FMI20EventInfo()
      Instantiate a Java structure that that represents the C structure that contains information about events.
      FMI20EventInfo​(int newDiscreteStatesNeeded, int terminateSimulation, int nominalsOfContinuousStatesChanged, int valuesOfContinuousStatesChanged, int nextEventTimeDefined, double nextEventTime)
      Instantiate a Java structure that that represents the C structure that contains information about events.
      FMI20EventInfo​(com.sun.jna.Pointer pointer, int offset)
      Construct a FMI20EventInfo from data.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.util.List getFieldOrder()
      Return the field names in the proper order.
      • 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

      • newDiscreteStatesNeeded

        public int newDiscreteStatesNeeded
        C type: fmiBoolean.
      • terminateSimulation

        public int terminateSimulation
        C type: fmiBoolean.
      • nominalsOfContinuousStatesChanged

        public int nominalsOfContinuousStatesChanged
        C type: fmiBoolean.
      • valuesOfContinuousStatesChanged

        public int valuesOfContinuousStatesChanged
        C type: fmiBoolean.
      • nextEventTimeDefined

        public int nextEventTimeDefined
        C type: fmiBoolean.
      • nextEventTime

        public double nextEventTime
        C type: fmiReal.
    • Constructor Detail

      • FMI20EventInfo

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

        public FMI20EventInfo​(com.sun.jna.Pointer pointer,
                              int offset)
        Construct a FMI20EventInfo from data.
        Parameters:
        pointer - a pointer to the data.
        offset - the offset, in bytes.
      • FMI20EventInfo

        public FMI20EventInfo​(int newDiscreteStatesNeeded,
                              int terminateSimulation,
                              int nominalsOfContinuousStatesChanged,
                              int valuesOfContinuousStatesChanged,
                              int nextEventTimeDefined,
                              double nextEventTime)
        Instantiate a Java structure that that represents the C structure that contains information about events.

        This is for FMI-1.0

        Parameters:
        newDiscreteStatesNeeded - C type: fmiBoolean
        terminateSimulation - C type: fmiBoolean
        nominalsOfContinuousStatesChanged - C type: fmiBoolean
        valuesOfContinuousStatesChanged - C type: fmiBoolean
        nextEventTimeDefined - C type: fmiBoolean
        nextEventTime - C type: fmiReal
    • Method Detail

      • getFieldOrder

        protected java.util.List getFieldOrder()
        Return the field names in the proper order.

        This is new in jna-3.5.0.

        Specified by:
        getFieldOrder in class com.sun.jna.Structure
        Returns:
        a list of strings that name the fields in order.