diff options
| author | Foghrye4 <foghrye4@gmail.com> | 2017-08-10 18:52:45 +0300 |
|---|---|---|
| committer | Foghrye4 <foghrye4@gmail.com> | 2017-08-10 18:52:45 +0300 |
| commit | 0427ab89f1753a44b30cbc35ce021cbbdc845109 (patch) | |
| tree | abe418ff5ec174e712fe8dedd434548a945b15a3 /src/main/java/ihl/metallurgy/constants/Insulation.java | |
| parent | 877312184c472d9845e5ef1008bc538f4634059f (diff) | |
fix missing source folder
Diffstat (limited to 'src/main/java/ihl/metallurgy/constants/Insulation.java')
| -rw-r--r-- | src/main/java/ihl/metallurgy/constants/Insulation.java | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/main/java/ihl/metallurgy/constants/Insulation.java b/src/main/java/ihl/metallurgy/constants/Insulation.java new file mode 100644 index 0000000..cd8f8c9 --- /dev/null +++ b/src/main/java/ihl/metallurgy/constants/Insulation.java @@ -0,0 +1,40 @@ +package ihl.metallurgy.constants;
+
+public enum Insulation {
+ TarPitch(10000,6000),
+ RawRubber(10000,6000),
+ PVC(18000,20000),
+ Rubber(20000,10000),
+ Plastic(40000,35000),//Polyethylene
+ XPVC(30000,100000);
+ Insulation(int maxVoltagePermm1, int maxVoltageCap1)
+ {
+ maxVoltagePermm=maxVoltagePermm1;//V/mm
+ maxVoltageCap=maxVoltageCap1;
+ }
+ public final int maxVoltagePermm;
+ public final int maxVoltageCap;
+ public static int getMaxVoltagePermm(String name)
+ {
+ if(Insulation.valueOf(name)==null)
+ {
+ return 0;
+ }
+ else
+ {
+ return Insulation.valueOf(name).maxVoltagePermm;
+ }
+ }
+ public static int getMaxVoltageCap(String name)
+ {
+ if(Insulation.valueOf(name)==null)
+ {
+ return 0;
+ }
+ else
+ {
+ return Insulation.valueOf(name).maxVoltageCap;
+ }
+ }
+
+}
|
