001    // GraphLab Project: http://graphlab.sharif.edu
002    // Copyright (C) 2008 Mathematical Science Department of Sharif University of Technology
003    // Distributed under the terms of the GNU General Public License (GPL): http://www.gnu.org/licenses/
004    
005    package graphlab.graph.atributeset;
006    
007    import graphlab.graph.graph.EdgeModel;
008    import graphlab.platform.attribute.TimeLimitedNotifiableAttrSet;
009    
010    /**
011     * changes on EdgeModel will take effect on next 100 milisecond,
012     * using this class should be done with care, this class uses a thread
013     * and checks the edge on each 100ms for any changes, so creating a lot of
014     * instances of this class (for example for all edges of graph)
015     * will take more and more cpu,
016     * <p/>
017     * try to create as few as possible instances of this class and call stop() when you don't need
018     * it any more!
019     * <p/>
020     *
021     * @author azin azadi
022     * @see EdgeAttrSet
023     * @see graphlab.graph.graph.EdgeModel
024     * @see EdgeAttrSet
025     */
026    public class EdgeNotifiableAttrSet extends TimeLimitedNotifiableAttrSet<EdgeAttrSet> {
027        public EdgeNotifiableAttrSet(EdgeModel input) {
028            super(new EdgeAttrSet(input));
029        }
030    }
031    
032