src/main/java/org/thegalactic/context/constraint/categorical/CategoricalModel.java
public CategoricalAttribute addAttribute() {
        if (this.instantiated) {
            throw new IllegalStateException("This model has already been instantiated");
        } else {
            final CategoricalAttribute attribute = CategoricalAttribute.create(this);
            this.attributes.add(attribute);
            return attribute;
        }
    }
/**
     * Add a new categorical attribute.
     *
     * @return a new added CategoricalAttribute
     */
Add a new categorical attribute.
@return a new added CategoricalAttribute
Add a new categorical attribute . @return a new added CategoricalAttribute
public CategoricalAttribute addAttribute() {
        if (this.instantiated) {
            throw new IllegalStateException("This model has already been instantiated");
        } else {
            final CategoricalAttribute attribute = CategoricalAttribute.create(this);
            this.attributes.add(attribute);
            return attribute;
        }
    }
public CategoricalAttribute addAttribute ( ) { if ( this . instantiated ) { throw new IllegalStateException ( "This model has already been instantiated" ) ; } else { final CategoricalAttribute attribute = CategoricalAttribute . create ( this ) ; this . attributes . add ( attribute ) ; return attribute ; } }
Add a new categorical attribute.
Add a new categorical attribute .