jcreek.representation.constraints
Interface ConstraintData

All Known Implementing Classes:
LocalConstraintData

public interface ConstraintData

Interface for Constraint data.
This interface can be implemented differently depending on how the constrains(and the rest for the knowledge model shall be stored.
Known implementations: LocalConstraintData

Version:
1.0
Author:
Martin Stige

Method Summary
 ConstraintObject getConstraintObject()
          Returns the constraint object
 java.lang.String getDescription()
          Returns the description of the constraint
 java.lang.Integer getID()
          returns the ID of the constraint
 Constraint newConstraintInstance()
          returns an instance of the constraint
 void setConstraintObject(ConstraintObject constraintObject)
          Sets the constraint object of the constraint
 void setDescription(java.lang.String description)
          Sets the description of the constraint
 java.lang.String toString()
           
 

Method Detail

setConstraintObject

public void setConstraintObject(ConstraintObject constraintObject)
Sets the constraint object of the constraint

Parameters:
constraintObject - the constraint object to set for the constraint data

getConstraintObject

public ConstraintObject getConstraintObject()
Returns the constraint object


getDescription

public java.lang.String getDescription()
Returns the description of the constraint


setDescription

public void setDescription(java.lang.String description)
Sets the description of the constraint

Parameters:
description - the description

getID

public java.lang.Integer getID()
returns the ID of the constraint


toString

public java.lang.String toString()

newConstraintInstance

public Constraint newConstraintInstance()
returns an instance of the constraint



Created at IDI, NTNU by the Artificial Intelligence and Learning group