remove local properties
parent
029c4e8c96
commit
ebfcc51eeb
|
|
@ -3,3 +3,4 @@ out/
|
||||||
build/
|
build/
|
||||||
.gradle/
|
.gradle/
|
||||||
plots/
|
plots/
|
||||||
|
local.properties
|
||||||
|
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
## This file must *NOT* be checked into Version Control Systems,
|
|
||||||
# as it contains information specific to your local configuration.
|
|
||||||
#
|
|
||||||
# Location of the SDK. This is only used by Gradle.
|
|
||||||
# For customization when using a Version Control System, please read the
|
|
||||||
# header note.
|
|
||||||
#Thu Oct 14 18:38:37 CEST 2021
|
|
||||||
sdk.dir=/home/agp8x/Android/Sdk
|
|
||||||
|
|
@ -108,9 +108,7 @@ public class Test {
|
||||||
//plot(Database.GasFilter, "rubber",1);
|
//plot(Database.GasFilter, "rubber",1);
|
||||||
plot(Database.AluminumCasing, "aluCase", 1);
|
plot(Database.AluminumCasing, "aluCase", 1);
|
||||||
javaPlot("aluCase");
|
javaPlot("aluCase");
|
||||||
SumResult ac = SumResult.sum(new Production(Database.AluminumCasing, 1));
|
planFor(Database.AluminumCasing, 1, "aluCase_sum");
|
||||||
plot2(ac.getProduction(), "aluCase_sum");
|
|
||||||
javaPlot("aluCase_sum");
|
|
||||||
//System.exit(128);
|
//System.exit(128);
|
||||||
Item i = Database.AluminumIngot;
|
Item i = Database.AluminumIngot;
|
||||||
//plot2(SumResult.sum(i, 1),"rubber_");
|
//plot2(SumResult.sum(i, 1),"rubber_");
|
||||||
|
|
@ -118,18 +116,19 @@ public class Test {
|
||||||
SumResult s = SumResult.sum(new Production(Database.RadioControlUnit, 2));
|
SumResult s = SumResult.sum(new Production(Database.RadioControlUnit, 2));
|
||||||
plot2(s.getProduction(), "rcu");
|
plot2(s.getProduction(), "rcu");
|
||||||
|
|
||||||
SumResult alclad = SumResult.sum(new Production(Database.AlcladAluminumSheet,100));
|
planFor(Database.AlcladAluminumSheet, 100, "alclad");
|
||||||
plot2(alclad.getProduction(), "alclad");
|
|
||||||
javaPlot("alclad");
|
|
||||||
|
|
||||||
|
|
||||||
SumResult fuelrod = SumResult.sum(new Production(Database.UraniumFuelRod,100));
|
planFor(Database.UraniumFuelRod, 1, "fuelrod");
|
||||||
plot2(fuelrod.getProduction(), "fuelrod");
|
|
||||||
javaPlot("fuelrod");
|
|
||||||
|
|
||||||
SumResult fusedFrame = SumResult.sum(new Production(Database.FusedModularFrame,100));
|
planFor(Database.FusedModularFrame, 100, "fusedFrame");
|
||||||
plot2(fusedFrame.getProduction(), "fusedFrame");
|
planFor(Database.SteelIngot, 100, "steelIngot");
|
||||||
javaPlot("fusedFrame");
|
}
|
||||||
|
|
||||||
|
private static void planFor(Item item, int amount, String name) {
|
||||||
|
SumResult plan = SumResult.sum(new Production(item, amount));
|
||||||
|
plot2(plan.getProduction(), name);
|
||||||
|
javaPlot(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void plot(Item target, String name, int amount) {
|
private static void plot(Item target, String name, int amount) {
|
||||||
|
|
|
||||||
|
|
@ -100,9 +100,8 @@ public class Utils {
|
||||||
if (item.isRaw()) {
|
if (item.isRaw()) {
|
||||||
m.put("peripheries", DefaultAttribute.createAttribute(2));
|
m.put("peripheries", DefaultAttribute.createAttribute(2));
|
||||||
}
|
}
|
||||||
|
|
||||||
String label = item.getName();
|
String label = item.getName();
|
||||||
label = label.replace(".", "_");
|
|
||||||
label = label.replace("#", "_");
|
|
||||||
m.put("label", DefaultAttribute.createAttribute(label));
|
m.put("label", DefaultAttribute.createAttribute(label));
|
||||||
return m;
|
return m;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue