public static Equipment CreateInputEquipment(string equipmentName) { Machine machine = new Machine("InputMachine"); machine.PortType = "Input"; Port inputPort = new InputPort(); Equipment equipment = new Equipment(); equipment.Machine = machine; equipment.Name = equipmentName; equipment.AddPort(inputPort); return equipment; }
public static Equipment CreateInputEquipment(string equipmentName) { Machine machine = new Machine("InputMachine"); machine.PortType = "Input"; Port inputPort = new InputPort(); Equipment equipment = new Equipment(); equipment.Machine = machine; equipment.Name = equipmentName; equipment.AddPort(inputPort); return(equipment); }