com.tensegrity.generic.constraint
Interface Restrictable

All Known Subinterfaces:
Attribute, AttributeCollection, AttributeList, AttributeSet, CustomAttribute
All Known Implementing Classes:
DirectoryLocationAttribute, FormatAttribute, HRefAttribute, ItemListAttribute, MetricAttribute

public interface Restrictable

The Restrictable interface defines a standard set of methods for a class that wants to control its principle value by a Constraint. Since several constraints can be combined with logical operators, it doesn't make much sense to have more than one Constraint per value. It is better to use the appropriate logical-and respectively logical-or operators that fit best to the desired Constraint expression. The interface provides a standard for classes that want to use a Constraint, but this is not important to the general concept of a Constraint, which can be used in meaningful ways above and beyond the Restrictable interface.

Version:
$Id: Restrictable.java,v 1.7 2005/12/09 15:11:17 KevinCVS Exp $
Author:
M. Kegel,
See Also:
Constraint, ConstraintParser

Method Summary
 Constraint getConstraint()
          Returns the root of the constraint tree.
 void setConstraint(Constraint constraint)
          Sets the root of the constraint tree.
 

Method Detail

setConstraint

public void setConstraint(Constraint constraint)
Sets the root of the constraint tree.

Parameters:
constraint - the root of the constraint tree

Find more information in the class documentation


getConstraint

public Constraint getConstraint()
Returns the root of the constraint tree.

Returns:
the root of the constraint tree

Find more information in the class documentation



Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.