public void setWorkflowEnum(Workflow type) { CharSequence typeString = null; switch (type) { case ESTIMATION: typeString = "ESTIMATION"; break; case FORECAST: typeString = "FORECAST"; break; default: throw new IllegalArgumentException("Unknown Workflow " + type + "."); } super.setWorkflow(typeString); }
public void setRunModeEnum(RunMode type) { CharSequence typeString = null; switch (type) { case HISTORICAL: typeString = "HISTORICAL"; break; case LIVE: typeString = "LIVE"; break; default: throw new IllegalArgumentException("Unknown RunMode " + type + "."); } super.setRunMode(typeString); }
/** @param type FD type (Greenshields, etc), an element of the FDTypeEnum enumeration */ public void setFDTypeEnum(FDTypeEnum type) { CharSequence typeString = null; switch (type) { case GREENSHIELDS: typeString = "Greenshields"; break; case DAGANZO_NEWELL: typeString = "DaganzoNewell"; break; case SMULDERS: typeString = "Smulders"; break; default: throw new IllegalArgumentException("Unknown FD type " + type + "."); } super.setFdType(typeString); }
public void setFeedEnum(Feed type) { CharSequence typeString = null; switch (type) { case PEMS: typeString = "PEMS"; break; case PROBEA: typeString = "PROBEA"; break; case PROBEB: typeString = "PROBEB"; break; default: throw new IllegalArgumentException("Unknown Feed " + type + "."); } super.setFeed(typeString); }
/** @param type CTM type (rho-CTM, v-CTM, etc), an element of the CTMType enum */ public void setCTMTypeEnum(CTMType type) { CharSequence typeString = null; switch (type) { case DENSITY: typeString = "Density"; break; case VELOCITY: typeString = "Velocity"; break; case DENSITY_VELOCITY_FUSION: typeString = "DensityVelocityFusion"; break; case VELOCITY_DENSITY_FUSION: typeString = "VelocityDensityFusion"; break; default: throw new IllegalArgumentException("Unknown CTM type " + type + "."); } super.setCtmType(typeString); }
public void setEnkfTypeEnum(EnKFType type) { CharSequence typeString = null; switch (type) { case SIMPLEAVERAGE: typeString = "SIMPLEAVERAGE"; break; case GLOBALJAMA: typeString = "GLOBALJAMA"; break; case GLOBALBLAS: typeString = "GLOBALBLAS"; break; case LOCALJAMA: typeString = "LOCALJAMA"; break; case LOCALBLAS: typeString = "LOCALBLAS"; break; default: throw new IllegalArgumentException("Unknown EnKF Type " + type + "."); } super.setEnkfType(typeString); }