001    /**
002     * planningtool - A Planning Tool with Critiquing Support.
003     * 
004     * Copyright (C) 2006 olale
005    
006     * This program is free software; you can redistribute it and/or
007     * modify it under the terms of the GNU General Public License
008     * as published by the Free Software Foundation; either version 2
009     * of the License, or (at your option) any later version.
010    
011     * This program is distributed in the hope that it will be useful,
012     * but WITHOUT ANY WARRANTY; without even the implied warranty of
013     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
014     * GNU General Public License for more details.
015    
016     * You should have received a copy of the GNU General Public License
017     * along with this program; if not, write to the Free Software
018     * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
019    
020     * Contact information: 
021     * E-mail: olale@ida.liu.se
022     *         olale@lysator.liu.se
023     */
024    package se.liu.ida.critiquer.activities.parameters;
025    
026    
027    /**
028     * 
029     * There may be parameters in activities that are nested within other parameters
030     * but may have to be passed as reference to listeners that are interested in
031     * knowing when things that affect activities are changed. Therefore we have
032     * this interface which is implemented both by ActivityParameter and
033     * AgentParameter. An AgentParameter is associated with a Commander, which in
034     * turn can be associated with several activities. If agents are selected to
035     * commanders, it affects all the activities that the commander is in control
036     * of. Therefore such a change should be propagated to all concerned activities.
037     * The only way to do that is to have a common interface for parameters that are
038     * directly connected to activities and those that are nested deeper within. We
039     * will try to keep the interface light therefore.
040     * 
041     * @author olale
042     * 
043     */
044    public interface Parameter<T> {
045    
046            public T getValue();
047    
048            public boolean hasValue();
049    }