|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectyacs.net.Solutions
Container-Klasse für die Repräsentation von Lösungen eines Constraint-Problems.
Copyright (C) 2005 Wolfgang Runte
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
USA
Constructor Summary | |
Solutions()
|
Method Summary | |
boolean |
addSolution(Solution solution)
Fügt die übergebene Lösung den vorhandenen hinzu, wenn sie nicht bereits enthalten ist. |
boolean |
containsSolution(Solution solution)
Überprüft, ob die übergebene Lösung bereits enthalten ist ( true ) oder nicht (false ). |
java.util.List |
getSolutions()
Liefert eine "unmodifizierbare" Liste mit den enthaltenen Lösungen (Instanzen der Klassse yacs.net.Solution ). |
boolean |
hasSolutions()
Liefert true , wenn Lösungen existieren, false
wenn nicht. |
java.lang.String |
toString()
Generiert zu Debugging-Zwecken einen String mit den in diesem Container enthaltenen Lösungen. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Solutions()
Method Detail |
public boolean addSolution(Solution solution)
true
, wenn dies erfolgreich verlaufen
ist (Lösung war noch nicht vorhanden), false
wenn nicht
(Lösung existierte bereits).
solution
- Solutionpublic java.util.List getSolutions()
yacs.net.Solution
).
public boolean hasSolutions()
true
, wenn Lösungen existieren, false
wenn nicht.
public boolean containsSolution(Solution solution)
true
) oder nicht (false
).
solution
- Solution
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |