@@ -3057,9 +3057,9 @@ def __init__(self,
3057
3057
if isinstance (mode_declaration , ModeDeclaration ):
3058
3058
self .append_mode_declaratation (mode_declaration )
3059
3059
elif isinstance (mode_declaration , str ):
3060
- self .make_mode_declaration (mode_declaration )
3060
+ self .create_mode_declaration (mode_declaration )
3061
3061
elif isinstance (mode_declaration , tuple ):
3062
- self .make_mode_declaration (* mode_declaration )
3062
+ self .create_mode_declaration (* mode_declaration )
3063
3063
else :
3064
3064
err_msg = f"Invalid type '{ str (type (mode_declaration ))} '"
3065
3065
raise TypeError (err_msg + ". " + expected_types )
@@ -3100,10 +3100,10 @@ def append_mode_declaratation(self, mode_declaration: ModeDeclaration) -> None:
3100
3100
msg = f"mode_declaration: Invalid type '{ str (type (mode_declaration ))} '"
3101
3101
raise TypeError (msg + ". Expected 'ModeDeclaration'" )
3102
3102
3103
- def make_mode_declaration (self ,
3104
- name : str ,
3105
- value : int | None = None ,
3106
- ** kwargs ) -> ModeDeclaration :
3103
+ def create_mode_declaration (self ,
3104
+ name : str ,
3105
+ value : int | None = None ,
3106
+ ** kwargs ) -> ModeDeclaration :
3107
3107
"""
3108
3108
Convenience method for creating a new mode declaration within this group
3109
3109
"""
@@ -3251,20 +3251,20 @@ def append_invalidation_policy(self, invalidation_policy: InvalidationPolicy):
3251
3251
msg = f"invalidation_policy: Invalid type '{ str (type (invalidation_policy ))} '"
3252
3252
raise TypeError (msg + ". Expected 'InvalidationPolicy'" )
3253
3253
3254
- def make_data_element (self ,
3255
- name : str ,
3256
- init_value : ValueSpeficationElement | None = None ,
3257
- ** kwargs ) -> VariableDataPrototype :
3254
+ def create_data_element (self ,
3255
+ name : str ,
3256
+ init_value : ValueSpeficationElement | None = None ,
3257
+ ** kwargs ) -> VariableDataPrototype :
3258
3258
"""
3259
3259
Convenience method for adding a new data element to this port interface
3260
3260
"""
3261
3261
data_element = VariableDataPrototype (name , init_value , ** kwargs )
3262
3262
self .append_data_element (data_element )
3263
3263
return data_element
3264
3264
3265
- def make_invalidation_policy (self ,
3266
- data_element_ref : VariableDataPrototypeRef | str ,
3267
- handle_invalid : ar_enum .HandleInvalid ) -> InvalidationPolicy :
3265
+ def create_invalidation_policy (self ,
3266
+ data_element_ref : VariableDataPrototypeRef | str ,
3267
+ handle_invalid : ar_enum .HandleInvalid ) -> InvalidationPolicy :
3268
3268
"""
3269
3269
Convenience method for adding a new invalidation policy to this port interface
3270
3270
"""
@@ -3314,10 +3314,10 @@ def append_data_element(self, nv_data: VariableDataPrototype):
3314
3314
msg = f"nv_data: Invalid type '{ str (type (nv_data ))} '"
3315
3315
raise TypeError (msg + ". Expected 'VariableDataPrototype'" )
3316
3316
3317
- def make_data_element (self ,
3318
- name : str ,
3319
- init_value : ValueSpeficationElement | None = None ,
3320
- ** kwargs ) -> VariableDataPrototype :
3317
+ def create_data_element (self ,
3318
+ name : str ,
3319
+ init_value : ValueSpeficationElement | None = None ,
3320
+ ** kwargs ) -> VariableDataPrototype :
3321
3321
"""
3322
3322
Convenience method for adding a new data element to this port interface
3323
3323
"""
@@ -3359,10 +3359,10 @@ def append_parameter(self, parameter: ParameterDataPrototype):
3359
3359
msg = f"parameter: Invalid type '{ str (type (parameter ))} '"
3360
3360
raise TypeError (msg + ". Expected 'ParameterDataPrototype'" )
3361
3361
3362
- def make_parameter (self ,
3363
- name : str ,
3364
- init_value : ValueSpeficationElement | None = None ,
3365
- ** kwargs ) -> ParameterDataPrototype :
3362
+ def create_parameter (self ,
3363
+ name : str ,
3364
+ init_value : ValueSpeficationElement | None = None ,
3365
+ ** kwargs ) -> ParameterDataPrototype :
3366
3366
"""
3367
3367
Convenience method for adding a new parameter to this port interface
3368
3368
"""
@@ -3440,44 +3440,44 @@ def append_argument(self, argument: ArgumentDataPrototype) -> None:
3440
3440
msg = f"argument: Invalid type '{ str (type (argument ))} '"
3441
3441
raise TypeError (msg + ". Expected 'ArgumentDataPrototype'" )
3442
3442
3443
- def make_argument (self ,
3444
- name : str ,
3445
- direction : ar_enum .ArgumentDirection | None = None ,
3446
- server_arg_impl_policy : ar_enum .ServerArgImplPolicy | None = None ,
3447
- ** kwargs ) -> ArgumentDataPrototype :
3443
+ def create_argument (self ,
3444
+ name : str ,
3445
+ direction : ar_enum .ArgumentDirection | None = None ,
3446
+ server_arg_impl_policy : ar_enum .ServerArgImplPolicy | None = None ,
3447
+ ** kwargs ) -> ArgumentDataPrototype :
3448
3448
"""
3449
3449
Convenience method for adding a new argument to this operation
3450
3450
"""
3451
3451
argument = ArgumentDataPrototype (name , direction , server_arg_impl_policy , ** kwargs )
3452
3452
self .append_argument (argument )
3453
3453
return argument
3454
3454
3455
- def make_in_argument (self ,
3456
- name : str ,
3457
- server_arg_impl_policy : ar_enum .ServerArgImplPolicy | None = None ,
3458
- ** kwargs ) -> ArgumentDataPrototype :
3455
+ def create_in_argument (self ,
3456
+ name : str ,
3457
+ server_arg_impl_policy : ar_enum .ServerArgImplPolicy | None = None ,
3458
+ ** kwargs ) -> ArgumentDataPrototype :
3459
3459
"""
3460
3460
Convenience method for adding a new in-argument to this operation
3461
3461
"""
3462
3462
argument = ArgumentDataPrototype (name , ar_enum .ArgumentDirection .IN , server_arg_impl_policy , ** kwargs )
3463
3463
self .append_argument (argument )
3464
3464
return argument
3465
3465
3466
- def make_inout_argument (self ,
3467
- name : str ,
3468
- server_arg_impl_policy : ar_enum .ServerArgImplPolicy | None = None ,
3469
- ** kwargs ) -> ArgumentDataPrototype :
3466
+ def create_inout_argument (self ,
3467
+ name : str ,
3468
+ server_arg_impl_policy : ar_enum .ServerArgImplPolicy | None = None ,
3469
+ ** kwargs ) -> ArgumentDataPrototype :
3470
3470
"""
3471
3471
Convenience method for adding a new inout-argument to this operation
3472
3472
"""
3473
3473
argument = ArgumentDataPrototype (name , ar_enum .ArgumentDirection .INOUT , server_arg_impl_policy , ** kwargs )
3474
3474
self .append_argument (argument )
3475
3475
return argument
3476
3476
3477
- def make_out_argument (self ,
3478
- name : str ,
3479
- server_arg_impl_policy : ar_enum .ServerArgImplPolicy | None = None ,
3480
- ** kwargs ) -> ArgumentDataPrototype :
3477
+ def create_out_argument (self ,
3478
+ name : str ,
3479
+ server_arg_impl_policy : ar_enum .ServerArgImplPolicy | None = None ,
3480
+ ** kwargs ) -> ArgumentDataPrototype :
3481
3481
"""
3482
3482
Convenience method for adding a new out-argument to this operation
3483
3483
"""
@@ -3495,7 +3495,7 @@ def append_possible_error_ref(self, possible_error_ref: ApplicationErrorRef) ->
3495
3495
msg = f"argument: Invalid type '{ str (type (possible_error_ref ))} '"
3496
3496
raise TypeError (msg + ". Expected 'ApplicationErrorRef'" )
3497
3497
3498
- def make_possible_error_ref (self , value : str ) -> ApplicationErrorRef :
3498
+ def create_possible_error_ref (self , value : str ) -> ApplicationErrorRef :
3499
3499
"""
3500
3500
Convenience method for creating and adding a new possible error reference to this operation
3501
3501
"""
@@ -3559,13 +3559,13 @@ def append_possible_errors(self, possible_error: ApplicationError) -> None:
3559
3559
msg = f"operation: Invalid type '{ str (type (possible_error ))} '"
3560
3560
raise TypeError (msg + ". Expected 'ApplicationError'" )
3561
3561
3562
- def make_operation (self ,
3563
- name : str ,
3564
- arguments : ArgumentDataPrototype | list [ArgumentDataPrototype ] | None = None ,
3565
- diag_arg_integrity : bool | None = None ,
3566
- fire_and_forget : bool | None = None ,
3567
- possible_error_refs : ApplicationErrorRef | list [ApplicationErrorRef ] | None = None ,
3568
- ** kwargs ) -> ClientServerOperation :
3562
+ def create_operation (self ,
3563
+ name : str ,
3564
+ arguments : ArgumentDataPrototype | list [ArgumentDataPrototype ] | None = None ,
3565
+ diag_arg_integrity : bool | None = None ,
3566
+ fire_and_forget : bool | None = None ,
3567
+ possible_error_refs : ApplicationErrorRef | list [ApplicationErrorRef ] | None = None ,
3568
+ ** kwargs ) -> ClientServerOperation :
3569
3569
"""
3570
3570
Convenience method for creating a new operation in this port interface
3571
3571
"""
@@ -3574,10 +3574,10 @@ def make_operation(self,
3574
3574
self .append_operation (operation )
3575
3575
return operation
3576
3576
3577
- def make_possible_error (self ,
3578
- name : str ,
3579
- error_code : int | None = None ,
3580
- ** kwargs ) -> ApplicationError :
3577
+ def create_possible_error (self ,
3578
+ name : str ,
3579
+ error_code : int | None = None ,
3580
+ ** kwargs ) -> ApplicationError :
3581
3581
"""
3582
3582
Convenience-method for creating a new possible error in this port interface
3583
3583
"""
0 commit comments