@@ -300,48 +300,34 @@ constant Function CLOCK_INFERED = Function.FUNCTION(Path.IDENT("Clock"),
300300 CLOCK_DUMMY_NODE , {}, {CLOCK_PARAM }, {}, {}, Type . CLOCK (), DAE . FUNCTION_ATTRIBUTES_BUILTIN , {},
301301 Pointer . createImmutable(FunctionStatus . BUILTIN ), Pointer . createImmutable(0 ));
302302
303- // Clock(intervalCounter) - clock with Integer interval
303+ // Clock(intervalCounter, resolution = 1 ) - clock with Integer interval
304304constant Function CLOCK_INT = Function . FUNCTION (Path . IDENT ("Clock" ),
305- CLOCK_DUMMY_NODE , {INT_PARAM }, {CLOCK_PARAM }, {}, {
306- Slot . SLOT ("intervalCounter" , SlotType . POSITIONAL , NONE (), NONE (), 1 , SlotEvalStatus . NOT_EVALUATED )
307- }, Type . CLOCK (), DAE . FUNCTION_ATTRIBUTES_BUILTIN , {},
308- Pointer . createImmutable(FunctionStatus . BUILTIN ), Pointer . createImmutable(0 ));
309-
310- // Clock(intervalCounter, resolution) - clock with Integer interval
311- constant Function CLOCK_INT_RESOLUTION = Function . FUNCTION (Path . IDENT ("Clock" ),
312305 CLOCK_DUMMY_NODE , {INT_PARAM , INT_PARAM }, {CLOCK_PARAM }, {}, {
313- Slot . SLOT ("intervalCounter" , SlotType . POSITIONAL , NONE (), NONE (), 1 , SlotEvalStatus . NOT_EVALUATED ),
314- Slot . SLOT ("resolution" , SlotType . NAMED , SOME (Expression . INTEGER (1 )), NONE (), 2 , SlotEvalStatus . NOT_EVALUATED )
306+ Slot . SLOT ("intervalCounter" , SlotType . GENERIC , NONE (), NONE (), 1 , SlotEvalStatus . NOT_EVALUATED ),
307+ Slot . SLOT ("resolution" , SlotType . GENERIC , SOME (Expression . INTEGER (1 )), NONE (), 2 , SlotEvalStatus . NOT_EVALUATED )
315308 }, Type . CLOCK (), DAE . FUNCTION_ATTRIBUTES_BUILTIN , {},
316309 Pointer . createImmutable(FunctionStatus . BUILTIN ), Pointer . createImmutable(0 ));
317310
318311// Clock(interval) - clock with Real interval
319312constant Function CLOCK_REAL = Function . FUNCTION (Path . IDENT ("Clock" ),
320313 CLOCK_DUMMY_NODE , {REAL_PARAM }, {CLOCK_PARAM }, {}, {
321- Slot . SLOT ("interval" , SlotType . POSITIONAL , NONE (), NONE (), 1 , SlotEvalStatus . NOT_EVALUATED )
314+ Slot . SLOT ("interval" , SlotType . GENERIC , NONE (), NONE (), 1 , SlotEvalStatus . NOT_EVALUATED )
322315 }, Type . CLOCK (), DAE . FUNCTION_ATTRIBUTES_BUILTIN , {},
323316 Pointer . createImmutable(FunctionStatus . BUILTIN ), Pointer . createImmutable(0 ));
324317
325- // Clock(condition) - Boolean clock, triggered by zero-crossing events
318+ // Clock(condition, startInterval = 0.0 ) - Boolean clock, triggered by zero-crossing events
326319constant Function CLOCK_BOOL = Function . FUNCTION (Path . IDENT ("Clock" ),
327- CLOCK_DUMMY_NODE , {BOOL_PARAM }, {CLOCK_PARAM }, {}, {
328- Slot . SLOT ("condition" , SlotType . POSITIONAL , NONE (), NONE (), 1 , SlotEvalStatus . NOT_EVALUATED )
329- }, Type . CLOCK (), DAE . FUNCTION_ATTRIBUTES_BUILTIN , {},
330- Pointer . createImmutable(FunctionStatus . BUILTIN ), Pointer . createImmutable(0 ));
331-
332- // Clock(condition, startInterval) - Boolean clock, triggered by zero-crossing events
333- constant Function CLOCK_BOOL_INTERVAL = Function . FUNCTION (Path . IDENT ("Clock" ),
334320 CLOCK_DUMMY_NODE , {BOOL_PARAM , REAL_PARAM }, {CLOCK_PARAM }, {}, {
335- Slot . SLOT ("condition" , SlotType . POSITIONAL , NONE (), NONE (), 1 , SlotEvalStatus . NOT_EVALUATED ),
336- Slot . SLOT ("startInterval" , SlotType . NAMED , SOME (Expression . REAL (0 . 0 )), NONE (), 2 , SlotEvalStatus . NOT_EVALUATED )
321+ Slot . SLOT ("condition" , SlotType . GENERIC , NONE (), NONE (), 1 , SlotEvalStatus . NOT_EVALUATED ),
322+ Slot . SLOT ("startInterval" , SlotType . GENERIC , SOME (Expression . REAL (0 . 0 )), NONE (), 2 , SlotEvalStatus . NOT_EVALUATED )
337323 }, Type . CLOCK (), DAE . FUNCTION_ATTRIBUTES_BUILTIN , {},
338324 Pointer . createImmutable(FunctionStatus . BUILTIN ), Pointer . createImmutable(0 ));
339325
340326// Clock(c, solverMethod) - Solver clock
341327constant Function CLOCK_SOLVER = Function . FUNCTION (Path . IDENT ("Clock" ),
342328 CLOCK_DUMMY_NODE , {CLOCK_PARAM , STRING_PARAM }, {CLOCK_PARAM }, {}, {
343- Slot . SLOT ("condition " , SlotType . POSITIONAL , NONE (), NONE (), 1 , SlotEvalStatus . NOT_EVALUATED ),
344- Slot . SLOT ("solverMethod" , SlotType . NAMED , NONE (), NONE (), 2 , SlotEvalStatus . NOT_EVALUATED )
329+ Slot . SLOT ("c " , SlotType . GENERIC , NONE (), NONE (), 1 , SlotEvalStatus . NOT_EVALUATED ),
330+ Slot . SLOT ("solverMethod" , SlotType . GENERIC , NONE (), NONE (), 2 , SlotEvalStatus . NOT_EVALUATED )
345331 }, Type . CLOCK (), DAE . FUNCTION_ATTRIBUTES_BUILTIN , {},
346332 Pointer . createImmutable(FunctionStatus . BUILTIN ), Pointer . createImmutable(0 ));
347333
@@ -354,10 +340,8 @@ constant InstNode CLOCK_NODE = InstNode.CLASS_NODE("Clock",
354340 NFInstNode . CachedData . FUNCTION ({
355341 CLOCK_INFERED ,
356342 CLOCK_INT ,
357- CLOCK_INT_RESOLUTION ,
358343 CLOCK_REAL ,
359344 CLOCK_BOOL ,
360- CLOCK_BOOL_INTERVAL ,
361345 CLOCK_SOLVER
362346 },
363347 true , true ),
0 commit comments