
/**
 * A pair (hookName, component). It is used in two situations. 
 * <OL><LI> to represent components attached to local hooks and </LI>
 *     <LI> to represent client hooks to which this component is attached.</LI> 
 * </OL>
 * @author  Fabio Kon
 * @version 0.1
 * @see     ComponentConfigurator
 */

class HookSpecification {
/**
 * The name of the hook.
 */
    public String hook;
/**
 * The component that is attached to the hook or the client that contains the
 * hook.  
 */
    public ComponentConfigurator component;
    
/**
 * Creates a new HookSpecification with the given values.
 */
    public HookSpecification (String hook, ComponentConfigurator component)
    {
        this.hook = hook;
        this.component = component;
    }

    public boolean equals (HookSpecification hs)
    {
        return (hs.hook.equals(hook) & hs.component == component);
    }
    
    
};

