Esempio n. 1
0
 public Module(int width, int height, int operationTime, bool useDefaultLayout)
 {
     Shape = new Rectangle(width, height);
     this.OperationTime = operationTime;
     Shape.isEmpty      = false;
     if (useDefaultLayout)
     {
         //At default, the output is placed in the left corner of the module.
         InputLayout  = GetDefaultSingleOutputOrInputLayout(Shape);
         OutputLayout = GetDefaultSingleOutputOrInputLayout(Shape);
     }
 }
Esempio n. 2
0
 public Module(int width, int height, int operationTime, int numberOfInputs, int numberOfOutputs, ModuleLayout outputLayout, ModuleLayout inputLayout) : this(width, height, operationTime, false)
 {
     this.InputLayout  = inputLayout;
     this.OutputLayout = outputLayout;
 }
Esempio n. 3
0
 public Module(int width, int height, int operationTime, int numberOfInputs, int numberOfOutputs, ModuleLayout outputLayout) : this(width, height, operationTime, false)
 {
     this.InputLayout  = GetDefaultSingleOutputOrInputLayout(Shape);
     this.OutputLayout = outputLayout;
 }