Package org.ptolemy.fmi
Class FMICoSimulationCapabilities
- java.lang.Object
-
- org.ptolemy.fmi.FMICapabilities
-
- org.ptolemy.fmi.FMICoSimulationCapabilities
-
public class FMICoSimulationCapabilities extends FMICapabilities
An object that represents the the capabilities of a FMI co-simulation slave for FMI-1.0;A Functional Mock-up Unit file is a .fmu file in zip format that contains a .xml file named "modelDescription.xml". In FMI-1.0, the xml file may optionally contain a "Implementation" element that will contain either a "CoSimulation_Standalone" element or a "CoSimulation_Tool" element. Those two elements will contain a "Capabilities" element that has attributes that define the capabilities of the slave. This class has public fields that correspond to the attributes of the "Capabilities" element. The name of this class is taken from the FMI specification.
FMI documentation may be found at http://www.modelisar.com/fmi.html.
- Since:
- Ptolemy II 10.0
- Version:
- $Id$, $Id$
- Author:
- Christopher Brooks
- Pt.AcceptedRating:
- Red (cxh)
- Pt.ProposedRating:
- Red (cxh)
-
-
Field Summary
Fields Modifier and Type Field Description boolean
canBeInstantiatedOnlyOncePerProcess
True if only one FMU can be instantiated per process.boolean
canHandleEvents
True if the step size can be zero.boolean
canHandleVariableCommunicationStepSize
True if the slave ignores the allocateMemory() /** True if the slave can handle a variable step size.boolean
canInterpolateInputs
True if slave can interpolate inputs.boolean
canNotUseMemoryManagementFunctions
True if the slave ignores the allocateMemory() and freeMemory() callback functions and the slave uses its own memory management.boolean
canRejectSteps
True if the slave can discard and repeat a step.boolean
canRunAsynchronuously
True if the slave can run the fmiDoStep() call asynchronously.boolean
canSignalEvents
True if the slave can signal events during a communication step.int
maxOutputDerivativeOrder
The slave can supply derivatives with a maximum order.n The default value is 0.
-
Constructor Summary
Constructors Constructor Description FMICoSimulationCapabilities()
Create an empty Capability.FMICoSimulationCapabilities(org.w3c.dom.Element element)
Create a FMICoSimulationCapability from an XML Element.
-
Method Summary
-
Methods inherited from class org.ptolemy.fmi.FMICapabilities
getBoolean, toString
-
-
-
-
Field Detail
-
canBeInstantiatedOnlyOncePerProcess
public boolean canBeInstantiatedOnlyOncePerProcess
True if only one FMU can be instantiated per process. The default value is false.
-
canHandleVariableCommunicationStepSize
public boolean canHandleVariableCommunicationStepSize
True if the slave ignores the allocateMemory() /** True if the slave can handle a variable step size. The default value is false.
-
canHandleEvents
public boolean canHandleEvents
True if the step size can be zero. The default value is false.
-
canInterpolateInputs
public boolean canInterpolateInputs
True if slave can interpolate inputs. The default value is false.
-
canNotUseMemoryManagementFunctions
public boolean canNotUseMemoryManagementFunctions
True if the slave ignores the allocateMemory() and freeMemory() callback functions and the slave uses its own memory management. The default value is false.
-
canRunAsynchronuously
public boolean canRunAsynchronuously
True if the slave can run the fmiDoStep() call asynchronously. The default value is false.
-
canRejectSteps
public boolean canRejectSteps
True if the slave can discard and repeat a step. The default value is false.
-
canSignalEvents
public boolean canSignalEvents
True if the slave can signal events during a communication step. If false, then the slave cannot signal events during the communication step. The default value is false.
-
maxOutputDerivativeOrder
public int maxOutputDerivativeOrder
The slave can supply derivatives with a maximum order.n The default value is 0.
-
-
Constructor Detail
-
FMICoSimulationCapabilities
public FMICoSimulationCapabilities()
Create an empty Capability.
-
FMICoSimulationCapabilities
public FMICoSimulationCapabilities(org.w3c.dom.Element element)
Create a FMICoSimulationCapability from an XML Element.- Parameters:
element
- The XML Element that contains attributes.
-
-