edu.gwu.champAlg
Interface Problem

All Known Implementing Classes:
GDProblem, MSTProblem, SATProblem, TSPProblem

public interface Problem

This interface is implemented by problems, and is intended for those who want to create an optimization problem. If you are an algorithm writer, you don't need to understand this interface but instead the inheriting interface for the particular problem, such as TSPAlgorithm.


Method Summary
 java.lang.String getErrorMessage()
          Retrieve error message about an invalid problem.
 void readFromFile(java.io.File f)
          Read the problem in plain text from the given file.
 java.lang.String toString()
          Returns a problem description summary.
 void writeToFile(java.io.File f)
          Write the problem in plain text to the given file.
 

Method Detail

writeToFile

void writeToFile(java.io.File f)
Write the problem in plain text to the given file.

Parameters:
f - a File value

readFromFile

void readFromFile(java.io.File f)
Read the problem in plain text from the given file.

Parameters:
f - a File value

toString

java.lang.String toString()
Returns a problem description summary.

Overrides:
toString in class java.lang.Object
Returns:
a String value

getErrorMessage

java.lang.String getErrorMessage()
Retrieve error message about an invalid problem.

Returns:
a String value