org.optaplanner.examples.nqueens.domain
public class NQueens extends AbstractPersistable implements org.optaplanner.core.impl.solution.Solution<org.optaplanner.core.api.score.buildin.simple.SimpleScore>
id
Constructor and Description |
---|
NQueens() |
Modifier and Type | Method and Description |
---|---|
List<Column> |
getColumnList() |
int |
getN() |
Collection<? extends Object> |
getProblemFacts() |
List<Queen> |
getQueenList() |
List<Row> |
getRowList() |
org.optaplanner.core.api.score.buildin.simple.SimpleScore |
getScore() |
void |
setColumnList(List<Column> columnList) |
void |
setN(int n) |
void |
setQueenList(List<Queen> queenList) |
void |
setRowList(List<Row> rowList) |
void |
setScore(org.optaplanner.core.api.score.buildin.simple.SimpleScore score) |
compareTo, getId, setId, toString
public int getN()
public void setN(int n)
public org.optaplanner.core.api.score.buildin.simple.SimpleScore getScore()
getScore
in interface org.optaplanner.core.impl.solution.Solution<org.optaplanner.core.api.score.buildin.simple.SimpleScore>
public void setScore(org.optaplanner.core.api.score.buildin.simple.SimpleScore score)
setScore
in interface org.optaplanner.core.impl.solution.Solution<org.optaplanner.core.api.score.buildin.simple.SimpleScore>
public Collection<? extends Object> getProblemFacts()
getProblemFacts
in interface org.optaplanner.core.impl.solution.Solution<org.optaplanner.core.api.score.buildin.simple.SimpleScore>
Copyright © 2006-2013 JBoss by Red Hat. All Rights Reserved.