@@ -21,9 +21,9 @@ func (s *UCCEVCSuite) Test_IsUseCaseSupported() {
21
21
Actor : eebusutil .Ptr (model .UseCaseActorTypeEV ),
22
22
UseCaseSupport : []model.UseCaseSupportType {
23
23
{
24
- UseCaseName : eebusutil .Ptr (model .UseCaseNameTypeOptimizationOfSelfConsumptionDuringEVCharging ),
24
+ UseCaseName : eebusutil .Ptr (model .UseCaseNameTypeCoordinatedEVCharging ),
25
25
UseCaseAvailable : eebusutil .Ptr (true ),
26
- ScenarioSupport : []model.UseCaseScenarioSupportType {1 , 2 , 3 },
26
+ ScenarioSupport : []model.UseCaseScenarioSupportType {2 , 3 , 4 , 5 , 6 , 7 , 8 },
27
27
},
28
28
},
29
29
},
@@ -39,17 +39,36 @@ func (s *UCCEVCSuite) Test_IsUseCaseSupported() {
39
39
assert .NotNil (s .T (), err )
40
40
assert .Equal (s .T (), false , data )
41
41
42
- descData := & model.LoadControlLimitDescriptionListDataType {
43
- LoadControlLimitDescriptionData : []model.LoadControlLimitDescriptionDataType {
42
+ timeDescData := & model.TimeSeriesDescriptionListDataType {
43
+ TimeSeriesDescriptionData : []model.TimeSeriesDescriptionDataType {
44
44
{
45
- LimitId : eebusutil .Ptr (model .LoadControlLimitIdType (0 )),
46
- LimitCategory : eebusutil .Ptr (model .LoadControlCategoryTypeRecommendation ),
45
+ TimeSeriesId : eebusutil .Ptr (model .TimeSeriesIdType (0 )),
46
+ TimeSeriesType : eebusutil .Ptr (model .TimeSeriesTypeTypeConstraints ),
47
47
},
48
48
},
49
49
}
50
50
51
- rFeature := s .remoteDevice .FeatureByEntityTypeAndRole (s .evEntity , model .FeatureTypeTypeLoadControl , model .RoleTypeServer )
52
- fErr = rFeature .UpdateData (model .FunctionTypeLoadControlLimitDescriptionListData , descData , nil , nil )
51
+ rFeature := s .remoteDevice .FeatureByEntityTypeAndRole (s .evEntity , model .FeatureTypeTypeTimeSeries , model .RoleTypeServer )
52
+ fErr = rFeature .UpdateData (model .FunctionTypeTimeSeriesDescriptionListData , timeDescData , nil , nil )
53
+ assert .Nil (s .T (), fErr )
54
+
55
+ data , err = s .sut .IsUseCaseSupported (s .evEntity )
56
+ assert .NotNil (s .T (), err )
57
+ assert .Equal (s .T (), false , data )
58
+
59
+ descData := & model.IncentiveTableDescriptionDataType {
60
+ IncentiveTableDescription : []model.IncentiveTableDescriptionType {
61
+ {
62
+ TariffDescription : & model.TariffDescriptionDataType {
63
+ TariffId : eebusutil .Ptr (model .TariffIdType (0 )),
64
+ ScopeType : eebusutil .Ptr (model .ScopeTypeTypeSimpleIncentiveTable ),
65
+ },
66
+ },
67
+ },
68
+ }
69
+
70
+ rFeature = s .remoteDevice .FeatureByEntityTypeAndRole (s .evEntity , model .FeatureTypeTypeIncentiveTable , model .RoleTypeServer )
71
+ fErr = rFeature .UpdateData (model .FunctionTypeIncentiveTableDescriptionData , descData , nil , nil )
53
72
assert .Nil (s .T (), fErr )
54
73
55
74
data , err = s .sut .IsUseCaseSupported (s .evEntity )
0 commit comments