choco
Class AbstractEntity

java.lang.Object
  extended by choco.AbstractEntity
All Implemented Interfaces:
Entity
Direct Known Subclasses:
AbstractConstraint, AbstractDecision, AbstractGlobalSearchLimit, AbstractIntDomain, AbstractPropagationEngine, AbstractRealCompoundTerm, AbstractSolver, AbstractVar, BitSetEnumeratedDomain, RealDomainImpl, SetDomainImpl, Solver

public abstract class AbstractEntity
extends java.lang.Object
implements Entity

An overall root abstract class.


Field Summary
 java.lang.Object hook
          All objects may be linked to an external object
 AbstractProblem problem
          The (optimization or decision) problem to which the entity belongs.
 
Constructor Summary
protected AbstractEntity()
           
protected AbstractEntity(AbstractProblem pb)
           
 
Method Summary
 AbstractProblem getProblem()
          Retrieves the problem of the entity
 java.lang.String pretty()
          pretty printing of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hook

public java.lang.Object hook
All objects may be linked to an external object


problem

public AbstractProblem problem
The (optimization or decision) problem to which the entity belongs.

Constructor Detail

AbstractEntity

protected AbstractEntity()

AbstractEntity

protected AbstractEntity(AbstractProblem pb)
Method Detail

getProblem

public AbstractProblem getProblem()
Retrieves the problem of the entity

Specified by:
getProblem in interface Entity

pretty

public java.lang.String pretty()
Description copied from interface: Entity
pretty printing of the object. This String is not constant and may depend on the context.

Specified by:
pretty in interface Entity
Returns:
a readable string representation of the object