fr.jussieu.gla.wasa.core
Class ProblemItem

java.lang.Object
  |
  +--fr.jussieu.gla.wasa.core.ProblemItem
Direct Known Subclasses:
Configuration, Constraint, Explorer, RandomConfigurator

public abstract class ProblemItem
extends java.lang.Object

The base class for Problem-owned objects.

Version:
$Revision: 1.2 $ $Date: 2002/02/27 14:30:34 $
Author:
Laurent Caillette

Constructor Summary
ProblemItem(Problem problem)
          Constructor.
 
Method Summary
 java.lang.String getName()
          Allows to get a user-defined tag.
 Problem getProblem()
          Returns the Problem the item is associated with.
 void setName(java.lang.String name)
          Allows to set a user-defined tag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProblemItem

public ProblemItem(Problem problem)
Constructor. Automatically adds the instantiated item to the Problem.
Parameters:
problem - The Problem this Var belongs to.
Method Detail

getProblem

public final Problem getProblem()
Returns the Problem the item is associated with.
Returns:
The Problem instance.

getName

public final java.lang.String getName()
Allows to get a user-defined tag.
Returns:
The name of this ProblemItem.

setName

public final void setName(java.lang.String name)
Allows to set a user-defined tag.
Parameters:
name - The name of this ProblemItem.