Esempio n. 1
0
 public Axle(Axle axle)
 {
     Offset      = axle.Offset;
     InitialLoad = axle.InitialLoad;
     FinalLoad   = axle.InitialLoad;
     MaximumLoad = axle.MaximumLoad;
 }
Esempio n. 2
0
 public Truck(Truck truck)
 {
     Items            = new List <Item>(truck.Items);
     FrontAxle        = new Axle(truck.FrontAxle);
     RearAxle         = new Axle(truck.RearAxle);
     Width            = truck.Width;
     Height           = truck.Height;
     Depth            = truck.Depth;
     Volume           = truck.Volume;
     ContainerOffset  = truck.ContainerOffset;
     AllowedRotations = truck.AllowedRotations;
 }
Esempio n. 3
0
 public Truck(Axle frontAxle, Axle rearAxle, int width, int height, int depth, int containerOffset)
 {
     Items            = new List <Item>();
     FrontAxle        = new Axle(frontAxle);
     RearAxle         = new Axle(rearAxle);
     Width            = width;
     Height           = height;
     Depth            = depth;
     Volume           = Width * Height * Depth;
     ContainerOffset  = containerOffset;
     AllowedRotations = Rotation.NONE
                        | Rotation.Z
                        | Rotation.Y
                        | Rotation.XY
                        | Rotation.X
                        | Rotation.XZ;
 }
Esempio n. 4
0
 public Truck()
 {
     Items     = new List <Item>();
     FrontAxle = new Axle();
     RearAxle  = new Axle();
 }