public ForceDirectedSchedulerImpl(IFDSAdapater <T> adapter, IList <T> instructions, SchedulingConstraints constraints) { Adapter = adapter; Instructions = instructions; Constraints = constraints; CheckInput(); }
public static void Schedule(IFDSAdapater <T> adapter, IEnumerable <IList <T> > blocks, SchedulingConstraints constraints, bool minimizeBuses = true, bool minimizeRegisters = false) { foreach (var block in blocks) { Schedule(adapter, block, constraints, minimizeBuses, minimizeRegisters); } }
public static void Schedule(IFDSAdapater <T> adapter, IList <T> instructions, SchedulingConstraints constraints, bool minimizeBuses = true, bool minimizeRegisters = false) { var sched = new ForceDirectedSchedulerImpl <T>(adapter, instructions, constraints) { MinimizeBuses = minimizeBuses, MinimizeRegisters = minimizeRegisters }; sched.Run(); }