Skip to content

Commit 86d62b9

Browse files
committed
feat: [クラスラッパー]進段パラメーターテーブルの情報を取得・設定できるように
1 parent 006a32e commit 86d62b9

3 files changed

Lines changed: 264 additions & 0 deletions

File tree

Libs/BveTypes/ClassWrappers/Public/VehicleStep.cs

Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,42 @@ private static void Initialize(BveTypeSet bveTypes)
2929
CurrentGetMethod = members.GetSourcePropertyGetterOf(nameof(Current));
3030
MaxCurrentGetMethod = members.GetSourcePropertyGetterOf(nameof(MaxCurrent));
3131
NoLoadCurrentGetMethod = members.GetSourcePropertyGetterOf(nameof(NoLoadCurrent));
32+
33+
JerkRegulationUpGetMethod = members.GetSourcePropertyGetterOf(nameof(JerkRegulationUp));
34+
JerkRegulationUpSetMethod = members.GetSourcePropertySetterOf(nameof(JerkRegulationUp));
35+
36+
JerkRegulationDownGetMethod = members.GetSourcePropertyGetterOf(nameof(JerkRegulationDown));
37+
JerkRegulationDownSetMethod = members.GetSourcePropertySetterOf(nameof(JerkRegulationDown));
38+
39+
BreakerDelayOnGetMethod = members.GetSourcePropertyGetterOf(nameof(BreakerDelayOn));
40+
BreakerDelayOnSetMethod = members.GetSourcePropertySetterOf(nameof(BreakerDelayOn));
41+
42+
BreakerDelayOffGetMethod = members.GetSourcePropertyGetterOf(nameof(BreakerDelayOff));
43+
BreakerDelayOffSetMethod = members.GetSourcePropertySetterOf(nameof(BreakerDelayOff));
44+
45+
ResetTimeGetMethod = members.GetSourcePropertyGetterOf(nameof(ResetTime));
46+
ResetTimeSetMethod = members.GetSourcePropertySetterOf(nameof(ResetTime));
47+
48+
CurrentReducingTimeGetMethod = members.GetSourcePropertyGetterOf(nameof(CurrentReducingTime));
49+
CurrentReducingTimeSetMethod = members.GetSourcePropertySetterOf(nameof(CurrentReducingTime));
50+
51+
RequiredNotchUpGetMethod = members.GetSourcePropertyGetterOf(nameof(RequiredNotchUp));
52+
RequiredNotchUpSetMethod = members.GetSourcePropertySetterOf(nameof(RequiredNotchUp));
53+
54+
RequiredNotchDownGetMethod = members.GetSourcePropertyGetterOf(nameof(RequiredNotchDown));
55+
RequiredNotchDownSetMethod = members.GetSourcePropertySetterOf(nameof(RequiredNotchDown));
56+
57+
StopDelayUpGetMethod = members.GetSourcePropertyGetterOf(nameof(StopDelayUp));
58+
StopDelayUpSetMethod = members.GetSourcePropertySetterOf(nameof(StopDelayUp));
59+
60+
StopDelayDownGetMethod = members.GetSourcePropertyGetterOf(nameof(StopDelayDown));
61+
StopDelayDownSetMethod = members.GetSourcePropertySetterOf(nameof(StopDelayDown));
62+
63+
CurrentLimitingValueEmptyGetMethod = members.GetSourcePropertyGetterOf(nameof(CurrentLimitingValueEmpty));
64+
CurrentLimitingValueEmptySetMethod = members.GetSourcePropertySetterOf(nameof(CurrentLimitingValueEmpty));
65+
66+
CurrentLimitingValueFullGetMethod = members.GetSourcePropertyGetterOf(nameof(CurrentLimitingValueFull));
67+
CurrentLimitingValueFullSetMethod = members.GetSourcePropertySetterOf(nameof(CurrentLimitingValueFull));
3268
}
3369

3470
/// <summary>
@@ -89,5 +125,137 @@ public WrappedSortedList<string, GraphCurve> Curves
89125
/// 引張力が 0 となる主電動機電流を指定する電流テーブルを取得します。
90126
/// </summary>
91127
public GraphCurve NoLoadCurrent => GraphCurve.FromSource(NoLoadCurrentGetMethod.Invoke(Src, null));
128+
129+
private static FastMethod JerkRegulationUpGetMethod;
130+
private static FastMethod JerkRegulationUpSetMethod;
131+
/// <summary>
132+
/// ジャーク制御の電流が増加する速さ [A/s] を取得・設定します。
133+
/// </summary>
134+
public double JerkRegulationUp
135+
{
136+
get => JerkRegulationUpGetMethod.Invoke(Src, null);
137+
set => JerkRegulationUpSetMethod.Invoke(Src, new object[] { value });
138+
}
139+
140+
private static FastMethod JerkRegulationDownGetMethod;
141+
private static FastMethod JerkRegulationDownSetMethod;
142+
/// <summary>
143+
/// ジャーク制御の電流が減少する速さ [A/s] を取得・設定します。
144+
/// </summary>
145+
public double JerkRegulationDown
146+
{
147+
get => JerkRegulationDownGetMethod.Invoke(Src, null);
148+
set => JerkRegulationDownSetMethod.Invoke(Src, new object[] { value });
149+
}
150+
151+
private static FastMethod BreakerDelayOnGetMethod;
152+
private static FastMethod BreakerDelayOnSetMethod;
153+
/// <summary>
154+
/// 断流器入時の遅れ時間 [s] を取得・設定します。
155+
/// </summary>
156+
public double BreakerDelayOn
157+
{
158+
get => BreakerDelayOnGetMethod.Invoke(Src, null);
159+
set => BreakerDelayOnSetMethod.Invoke(Src, new object[] { value });
160+
}
161+
162+
private static FastMethod BreakerDelayOffGetMethod;
163+
private static FastMethod BreakerDelayOffSetMethod;
164+
/// <summary>
165+
/// 断流器切時の遅れ時間 [s] を取得・設定します。
166+
/// </summary>
167+
public double BreakerDelayOff
168+
{
169+
get => BreakerDelayOffGetMethod.Invoke(Src, null);
170+
set => BreakerDelayOffSetMethod.Invoke(Src, new object[] { value });
171+
}
172+
173+
private static FastMethod ResetTimeGetMethod;
174+
private static FastMethod ResetTimeSetMethod;
175+
/// <summary>
176+
/// 断流器切後、入可能になるまでの時間 [s] を取得・設定します。
177+
/// </summary>
178+
public double ResetTime
179+
{
180+
get => ResetTimeGetMethod.Invoke(Src, null);
181+
set => ResetTimeSetMethod.Invoke(Src, new object[] { value });
182+
}
183+
184+
private static FastMethod CurrentReducingTimeGetMethod;
185+
private static FastMethod CurrentReducingTimeSetMethod;
186+
/// <summary>
187+
/// 減流遮断における減流時間 [s] を取得・設定します。
188+
/// </summary>
189+
public double CurrentReducingTime
190+
{
191+
get => CurrentReducingTimeGetMethod.Invoke(Src, null);
192+
set => CurrentReducingTimeSetMethod.Invoke(Src, new object[] { value });
193+
}
194+
195+
private static FastMethod RequiredNotchUpGetMethod;
196+
private static FastMethod RequiredNotchUpSetMethod;
197+
/// <summary>
198+
/// 力行または抑速時、次の段に進むために必要な最小のハンドル位置を取得・設定します。
199+
/// </summary>
200+
public int RequiredNotchUp
201+
{
202+
get => RequiredNotchUpGetMethod.Invoke(Src, null);
203+
set => RequiredNotchUpSetMethod.Invoke(Src, new object[] { value });
204+
}
205+
206+
private static FastMethod RequiredNotchDownGetMethod;
207+
private static FastMethod RequiredNotchDownSetMethod;
208+
/// <summary>
209+
/// 力行または抑速時、前の段に戻るために必要な最大のハンドル位置を取得・設定します。
210+
/// </summary>
211+
public int RequiredNotchDown
212+
{
213+
get => RequiredNotchDownGetMethod.Invoke(Src, null);
214+
set => RequiredNotchDownSetMethod.Invoke(Src, new object[] { value });
215+
}
216+
217+
private static FastMethod StopDelayUpGetMethod;
218+
private static FastMethod StopDelayUpSetMethod;
219+
/// <summary>
220+
/// 次の段に進むのに要する時間 [s] を取得・設定します。
221+
/// </summary>
222+
public double StopDelayUp
223+
{
224+
get => StopDelayUpGetMethod.Invoke(Src, null);
225+
set => StopDelayUpSetMethod.Invoke(Src, new object[] { value });
226+
}
227+
228+
private static FastMethod StopDelayDownGetMethod;
229+
private static FastMethod StopDelayDownSetMethod;
230+
/// <summary>
231+
/// 前の段に進むのに要する時間 [s] を取得・設定します。
232+
/// </summary>
233+
public double StopDelayDown
234+
{
235+
get => StopDelayDownGetMethod.Invoke(Src, null);
236+
set => StopDelayDownSetMethod.Invoke(Src, new object[] { value });
237+
}
238+
239+
private static FastMethod CurrentLimitingValueEmptyGetMethod;
240+
private static FastMethod CurrentLimitingValueEmptySetMethod;
241+
/// <summary>
242+
/// 空車時における、次の段に進むことができる最大の電流 [A] を取得・設定します。
243+
/// </summary>
244+
public double CurrentLimitingValueEmpty
245+
{
246+
get => CurrentLimitingValueEmptyGetMethod.Invoke(Src, null);
247+
set => CurrentLimitingValueEmptySetMethod.Invoke(Src, new object[] { value });
248+
}
249+
250+
private static FastMethod CurrentLimitingValueFullGetMethod;
251+
private static FastMethod CurrentLimitingValueFullSetMethod;
252+
/// <summary>
253+
/// 応荷重最大時における、次の段に進むことができる最大の電流 [A] を取得・設定します。
254+
/// </summary>
255+
public double CurrentLimitingValueFull
256+
{
257+
get => CurrentLimitingValueFullGetMethod.Invoke(Src, null);
258+
set => CurrentLimitingValueFullSetMethod.Invoke(Src, new object[] { value });
259+
}
92260
}
93261
}

Libs/BveTypes/WrapTypes/5.8.7554.391.xml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -996,6 +996,54 @@
996996
<Property Wrapper="NoLoadCurrent">
997997
<Getter Original="l"/>
998998
</Property>
999+
<Property Wrapper="JerkRegulationUp">
1000+
<Getter Original="p"/>
1001+
<Setter Original="i"/>
1002+
</Property>
1003+
<Property Wrapper="JerkRegulationDown">
1004+
<Getter Original="a"/>
1005+
<Setter Original="j"/>
1006+
</Property>
1007+
<Property Wrapper="BreakerDelayOn">
1008+
<Getter Original="b"/>
1009+
<Setter Original="a"/>
1010+
</Property>
1011+
<Property Wrapper="BreakerDelayOff">
1012+
<Getter Original="c"/>
1013+
<Setter Original="h"/>
1014+
</Property>
1015+
<Property Wrapper="ResetTime">
1016+
<Getter Original="f"/>
1017+
<Setter Original="e"/>
1018+
</Property>
1019+
<Property Wrapper="CurrentReducingTime">
1020+
<Getter Original="q"/>
1021+
<Setter Original="f"/>
1022+
</Property>
1023+
<Property Wrapper="RequiredNotchUp">
1024+
<Getter Original="e"/>
1025+
<Setter Original="a"/>
1026+
</Property>
1027+
<Property Wrapper="RequiredNotchDown">
1028+
<Getter Original="m"/>
1029+
<Setter Original="b"/>
1030+
</Property>
1031+
<Property Wrapper="StopDelayUp">
1032+
<Getter Original="g"/>
1033+
<Setter Original="c"/>
1034+
</Property>
1035+
<Property Wrapper="StopDelayDown">
1036+
<Getter Original="i"/>
1037+
<Setter Original="b"/>
1038+
</Property>
1039+
<Property Wrapper="CurrentLimitingValueEmpty">
1040+
<Getter Original="j"/>
1041+
<Setter Original="g"/>
1042+
</Property>
1043+
<Property Wrapper="CurrentLimitingValueFull">
1044+
<Getter Original="n"/>
1045+
<Setter Original="d"/>
1046+
</Property>
9991047
</Class>
10001048

10011049
<Class Wrapper="VehicleStepSet" Original="fw">

Libs/BveTypes/WrapTypes/6.0.7554.619.xml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -996,6 +996,54 @@
996996
<Property Wrapper="NoLoadCurrent">
997997
<Getter Original="l"/>
998998
</Property>
999+
<Property Wrapper="JerkRegulationUp">
1000+
<Getter Original="p"/>
1001+
<Setter Original="i"/>
1002+
</Property>
1003+
<Property Wrapper="JerkRegulationDown">
1004+
<Getter Original="a"/>
1005+
<Setter Original="j"/>
1006+
</Property>
1007+
<Property Wrapper="BreakerDelayOn">
1008+
<Getter Original="b"/>
1009+
<Setter Original="a"/>
1010+
</Property>
1011+
<Property Wrapper="BreakerDelayOff">
1012+
<Getter Original="c"/>
1013+
<Setter Original="h"/>
1014+
</Property>
1015+
<Property Wrapper="ResetTime">
1016+
<Getter Original="f"/>
1017+
<Setter Original="e"/>
1018+
</Property>
1019+
<Property Wrapper="CurrentReducingTime">
1020+
<Getter Original="q"/>
1021+
<Setter Original="f"/>
1022+
</Property>
1023+
<Property Wrapper="RequiredNotchUp">
1024+
<Getter Original="e"/>
1025+
<Setter Original="a"/>
1026+
</Property>
1027+
<Property Wrapper="RequiredNotchDown">
1028+
<Getter Original="m"/>
1029+
<Setter Original="b"/>
1030+
</Property>
1031+
<Property Wrapper="StopDelayUp">
1032+
<Getter Original="g"/>
1033+
<Setter Original="c"/>
1034+
</Property>
1035+
<Property Wrapper="StopDelayDown">
1036+
<Getter Original="i"/>
1037+
<Setter Original="b"/>
1038+
</Property>
1039+
<Property Wrapper="CurrentLimitingValueEmpty">
1040+
<Getter Original="j"/>
1041+
<Setter Original="g"/>
1042+
</Property>
1043+
<Property Wrapper="CurrentLimitingValueFull">
1044+
<Getter Original="n"/>
1045+
<Setter Original="d"/>
1046+
</Property>
9991047
</Class>
10001048

10011049
<Class Wrapper="VehicleStepSet" Original="fw">

0 commit comments

Comments
 (0)