jitas.core
Class Solution

java.lang.Object
  extended by jitas.core.Solution
All Implemented Interfaces:
java.io.Serializable

public class Solution
extends java.lang.Object
implements java.io.Serializable

A solution to a problem

Version:
08 October 2007
Author:
DeathMarch (c314g2)
See Also:
Serialized Form

Constructor Summary
Solution()
          Default constructor that makes a new empty content
Solution(java.lang.String content)
          Constructor that takes in a String as the content eg: (("CASE" "N")("GENDER" "N")("ARTICLE" "D")("ANSWER" "graue")) This is used by the xml parser
 
Method Summary
 java.lang.String getContent()
          Get the solution content as a String of key-value pairs, with the first and last bracket removed.
 void setSolution(java.lang.String content)
          Set the solution of a Problem
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Solution

public Solution()
Default constructor that makes a new empty content


Solution

public Solution(java.lang.String content)
Constructor that takes in a String as the content eg: (("CASE" "N")("GENDER" "N")("ARTICLE" "D")("ANSWER" "graue")) This is used by the xml parser

Parameters:
content - The String of content
Method Detail

getContent

public java.lang.String getContent()
Get the solution content as a String of key-value pairs, with the first and last bracket removed. eg a solution of: (("CASE" "N")("GENDER" "N")("ARTICLE" "D")("ANSWER" "graue")) will return ("CASE" "N")("GENDER" "N")("ARTICLE" "D")("ANSWER" "graue") This is so the solution can be asserted.

Returns:
The solution content

setSolution

public void setSolution(java.lang.String content)
Set the solution of a Problem

Parameters:
content - The solution content