public class FMICapabilities
extends java.lang.Object
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.
Constructor and Description |
---|
FMICapabilities()
Create an empty Capability.
|
FMICapabilities(org.w3c.dom.Element element)
Create a FMICoSimulationCapability from an XML Element.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getBoolean(java.lang.String fieldName)
Get the value of a boolean field.
|
java.lang.String |
toString()
Return a description of the fields that are true or
non-zero.
|
public FMICapabilities()
public FMICapabilities(org.w3c.dom.Element element)
element
- The XML Element that contains attributes.public boolean getBoolean(java.lang.String fieldName) throws java.lang.IllegalArgumentException
fieldName
- The name of the boolean field.java.lang.IllegalArgumentException
- If the field is not found
or it is not a boolean.public java.lang.String toString()
toString
in class java.lang.Object