Skip to content

Commit

Permalink
change: Core: GerarHorarioOptions: HorariosDeAula
Browse files Browse the repository at this point in the history
  • Loading branch information
guesant committed Mar 21, 2024
1 parent 57625a0 commit d6eda9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class GerarHorarioOptions

public Turma[] Turmas { get; set; }
public Professor[] Professores { get; set; }
public Intervalo[] IntervalosDeAula { get; set; }
public Intervalo[] HorariosDeAula { get; set; }

public override string ToString()
{
Expand Down
4 changes: 2 additions & 2 deletions projeto-gerar-horario/Core/Gerador/Gerador.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public static CpModel PrepararModelComRestricoes(GerarHorarioOptions options, bo

// =================================
int quantidadeDeDias = options.DiaSemanaFim + 1 - options.DiaSemanaInicio;
int totalDeIntervalos = options.IntervalosDeAula.Length;
int totalDeIntervalos = options.HorariosDeAula.Length;
// TODO: implementar corretamente com options
int totalDeDiarios = 15 * 15;

Expand Down Expand Up @@ -68,7 +68,7 @@ public static CpModel PrepararModelComRestricoes(GerarHorarioOptions options, bo
{
foreach (var diaSemanaIso in Enumerable.Range(options.DiaSemanaInicio, options.DiaSemanaFim))
{
foreach (var intervaloIndex in Enumerable.Range(0, options.IntervalosDeAula.Length))
foreach (var intervaloIndex in Enumerable.Range(0, options.HorariosDeAula.Length))
{
var propostas = from propostaAula in todasAsPropostasDeAula
where
Expand Down

0 comments on commit d6eda9a

Please sign in to comment.