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); } }
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; }
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; }