@@ -46,16 +46,18 @@ def __init__(self):
4646 self .obj .oms_deleteConnectorFromBus .restype = ctypes .c_int
4747 self .obj .oms_deleteConnectorFromTLMBus .argtypes = [ctypes .c_char_p , ctypes .c_char_p ]
4848 self .obj .oms_deleteConnectorFromTLMBus .restype = ctypes .c_int
49+ self .obj .oms_doStep .argtypes = [ctypes .c_char_p ]
50+ self .obj .oms_doStep .restype = ctypes .c_int
4951 self .obj .oms_export .argtypes = [ctypes .c_char_p , ctypes .c_char_p ]
5052 self .obj .oms_export .restype = ctypes .c_int
5153 self .obj .oms_exportDependencyGraphs .argtypes = [ctypes .c_char_p , ctypes .c_char_p , ctypes .c_char_p , ctypes .c_char_p ]
5254 self .obj .oms_exportDependencyGraphs .restype = ctypes .c_int
5355 self .obj .oms_exportSnapshot .argtypes = [ctypes .c_char_p ]
5456 self .obj .oms_exportSnapshot .restype = ctypes .c_int
55- self .obj .oms_exportSSVTemplate .argtypes = [ctypes .c_char_p , ctypes .c_char_p ]
56- self .obj .oms_exportSSVTemplate .restype = ctypes .c_int
5757 self .obj .oms_exportSSMTemplate .argtypes = [ctypes .c_char_p , ctypes .c_char_p ]
5858 self .obj .oms_exportSSMTemplate .restype = ctypes .c_int
59+ self .obj .oms_exportSSVTemplate .argtypes = [ctypes .c_char_p , ctypes .c_char_p ]
60+ self .obj .oms_exportSSVTemplate .restype = ctypes .c_int
5961 self .obj .oms_faultInjection .argtypes = [ctypes .c_char_p , ctypes .c_int , ctypes .c_double ]
6062 self .obj .oms_faultInjection .restype = ctypes .c_int
6163 self .obj .oms_getBoolean .argtypes = [ctypes .c_char_p , ctypes .POINTER (ctypes .c_bool )]
@@ -74,6 +76,8 @@ def __init__(self):
7476 self .obj .oms_getStopTime .restype = ctypes .c_int
7577 self .obj .oms_getSystemType .argtypes = [ctypes .c_char_p ]
7678 self .obj .oms_getSystemType .restype = ctypes .c_int
79+ self .obj .oms_getTime .argtypes = [ctypes .c_char_p ]
80+ self .obj .oms_getTime .restype = ctypes .c_int
7781 self .obj .oms_getVariableStepSize .argtypes = [ctypes .c_char_p , ctypes .POINTER (ctypes .c_double ), ctypes .POINTER (ctypes .c_double ), ctypes .POINTER (ctypes .c_double )]
7882 self .obj .oms_getVariableStepSize .restype = ctypes .c_int
7983 self .obj .oms_getVersion .argtypes = None
@@ -186,6 +190,8 @@ def deleteConnectorFromBus(self, busCref, connectorCref):
186190 return self .obj .oms_deleteConnectorFromBus (busCref .encode (), connectorCref .encode ())
187191 def deleteConnectorFromTLMBus (self , busCref , connectorCref ):
188192 return self .obj .oms_deleteConnectorFromTLMBus (busCref .encode (), connectorCref .encode ())
193+ def doStep (self , cref ):
194+ return self .obj .oms_doStep (cref .encode ())
189195 def export (self , cref , filename ):
190196 return self .obj .oms_export (cref .encode (), filename .encode ())
191197 def exportDependencyGraphs (self , cref , initialization , event , simulation ):
@@ -232,6 +238,10 @@ def getSystemType(self, cref):
232238 type_ = ctypes .c_int ()
233239 status = self .obj .oms_getSystemType (cref .encode (), ctypes .byref (type_ ))
234240 return [type_ .value , status ]
241+ def getTime (self , cref ):
242+ time = ctypes .c_double ()
243+ status = self .obj .oms_getTime (cref .encode (), ctypes .byref (time ))
244+ return [time .value , status ]
235245 def getVariableStepSize (self , cref ):
236246 initialStepSize = ctypes .c_double ()
237247 minimumStepSize = ctypes .c_double ()
0 commit comments