public WagonContainer() { MaxLength = 30; MaxWidth = 10; MaxHeight = 5; MaxWeight = 10; Price = 3; Height = MaxHeight; Length = MaxLength; Width = MaxWidth; Weight = MaxWeight; type = new transType[] { transType.regional, transType.federal, transType.international }; }
public TruckContainer() { MaxLength = 10; MaxWidth = 5; MaxHeight = 2; MaxWeight = 3; Price = 2; Height = MaxHeight; Length = MaxLength; Width = MaxWidth; Weight = MaxWeight; type = new transType[] { transType.regional, transType.federal }; }
public TrainContainer() { MaxLength = 200; MaxWidth = 50; MaxHeight = 10; MaxWeight = 200; Price = 5; Height = MaxHeight; Length = MaxLength; Width = MaxWidth; Weight = MaxWeight; type = new transType[] { transType.federal, transType.international }; }
public SeaContainer() { MaxLength = 200; MaxWidth = 100; MaxHeight = 20; MaxWeight = 200; Price = 15; Height = MaxHeight; Length = MaxLength; Width = MaxWidth; Weight = MaxWeight; type = new transType[] { transType.international, transType.transcontinental }; }
public AirContainer() { MaxLength = 100; MaxWidth = 50; MaxHeight = 10; MaxWeight = 100; Price = 10; Height = MaxHeight; Length = MaxLength; Width = MaxWidth; Weight = MaxWeight; type = new transType[] { transType.regional, transType.federal, transType.international, transType.transcontinental }; }
public TransItem(Object objVal, transType transType) { this.objectValueField = objVal; this.transTypeField = transType; }
/// <summary> /// Calculates a transform a raster values to a different value via tranType /// </summary> /// <param name="inRaster"></param> /// <param name="typ"></param> /// <returns></returns> public IFunctionRasterDataset calcMathRasterFunction(object inRaster, transType typ) { IFunctionRasterDataset rRst = createIdentityRaster(inRaster); string tempAr = funcDir + "\\" + FuncCnt + ".afr"; IFunctionRasterDataset frDset = new FunctionRasterDatasetClass(); IFunctionRasterDatasetName frDsetName = new FunctionRasterDatasetNameClass(); frDsetName.FullName = tempAr; frDset.FullName = (IName)frDsetName; IRasterFunction rsFunc = null; switch (typ) { case transType.LOG10: rsFunc = new FunctionRasters.log10FunctionDataset(); break; case transType.LN: rsFunc = new FunctionRasters.logFunctionDataset(); break; case transType.EXP: rsFunc = new FunctionRasters.expFunctionDataset(); break; case transType.EXP10: rsFunc = new FunctionRasters.exp10FunctionDataset(); break; case transType.SIN: rsFunc = new FunctionRasters.sinFunctionDataset(); break; case transType.COS: rsFunc = new FunctionRasters.cosFunctionDataset(); break; case transType.TAN: rsFunc = new FunctionRasters.tanFunctionDataset(); break; case transType.ASIN: rsFunc = new FunctionRasters.asinFunctionDataset(); break; case transType.ACOS: rsFunc = new FunctionRasters.acosFunctionDataset(); break; case transType.ATAN: rsFunc = new FunctionRasters.atanFunctionDataset(); break; case transType.RADIANS: rsFunc = new FunctionRasters.radiansFunctionDataset(); break; case transType.SQRT: rsFunc = new FunctionRasters.sqrtFunctionDataset(); break; case transType.SQUARED: rsFunc = new FunctionRasters.squaredFunctionDataset(); break; default: rsFunc = new FunctionRasters.absFunctionDataset(); break; } FunctionRasters.MathFunctionArguments args = new FunctionRasters.MathFunctionArguments(this); args.InRaster = rRst; frDset.Init(rsFunc, args); return frDset; }