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 package graphlab.platform.attribute; 005 006 import java.util.Map; 007 008 /** 009 * The base interface for storing a set of attributes, it is very similar to a map. 010 * 011 * @author Azin Azadi 012 */ 013 public interface AttributeSet { 014 015 /** 016 * @return a unmodifiable copy of attributes in this object 017 */ 018 Map<String, Object> getAttrs(); 019 020 021 void put(String name, Object value); 022 023 Object get(String name); 024 025 }