public class ProblemXMLData extends ComponentXMLData
Constructor and Description |
---|
ProblemXMLData(ComponentType ctype,
java.io.File xmlfile)
Constructor of this problem class.
|
Modifier and Type | Method and Description |
---|---|
int |
getMaximumNumberOfPlayers() |
int |
getMinimumNumberOfPlayers() |
AbstractProblem |
getNewProblemInstance()
Returns a new problem instance created from this source data.
|
int |
getRequiredNumberOfInputs() |
int |
getRequiredNumberOfOutputs() |
java.util.Hashtable<java.lang.String,XMLFieldEntry> |
getRequirements()
Returns a map containing the loaded requirement pairs defined in the XML
file.
|
getAuthor, getClassDir, getClassName, getComponentClass, getComponentType, getDescription, getImageLocation, getKeywords, getName, getNewMethodInstance, getNewRankingInstance, getNewRepresentationInstance, getProperties, getSourceXMLFile, getTypeOfProperty, getValueOfProperty, getVersion, isLoadedSuccessfully, toString
public ProblemXMLData(ComponentType ctype, java.io.File xmlfile) throws java.lang.InstantiationException
ctype
- The type of this component.xmlfile
- The XML file used to load up data into this class.java.lang.InstantiationException
- if the component type is not problem or multi
problempublic int getRequiredNumberOfInputs()
public int getRequiredNumberOfOutputs()
public int getMinimumNumberOfPlayers()
public int getMaximumNumberOfPlayers()
public java.util.Hashtable<java.lang.String,XMLFieldEntry> getRequirements()
public AbstractProblem getNewProblemInstance() throws java.lang.InstantiationException
java.lang.InstantiationException
- if an error occurs while instantiating the encapsulated
problem object