1.为了凸显规范及逼格,使用入口类。
/**
* @Author: Houzhq
* @Date: 2019/6/11 15:37
* @Version 1.0
* @Note
*/
object EntranceA {
def main(args:Array[String]): Unit ={
args.toList match {
case task :: a => task match {
// case "temprise" => TempRise(a.toArray)
// case "volt_temp_diff" => VTdiff(a.toArray)
// case "nocurrent" => NoCurrent(a.toArray)
// case "batteryact" => BatteryActive(a.toArray)
// case "historydistance" => HistoryDistance(a.toArray)
// case "absolutehistorydistance" => HistoryDistance(a.toArray)
// case "tempchange" => TempChange(a.toArray)
// case "tempchange2" => TempChange2(a.toArray)
// case "coolcharge" => CoolCharge(a.toArray)
// case "tempdraw" => TempDrawData(a.toArray)
case "geo" => ChargeGeoInfo(a.toArray)
case "daily" => DailyStatA(a.toArray)
case "tempchange3" => TempChange3(a.toArray)
case "temprise2" => TempRise2(a.toArray)
case _ => print("Invalid task")
}
case Nil => print("no args!")
}
}
}