Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/port80/graph/IGraphElement.java


1   //
2   // Copyright(c) 2002, Chris Leung
3   //
4   
5   package com.port80.graph;
6   
7   import com.port80.util.attr.IAttrTable;
8   
9   /** Interface applies to all graph objects (Vertex,Edge,Graph)
10   *
11   *  . Basic services provided by this base interface are accessor
12   *    methods to the object name, the attribute map and some constants.
13   *  . Each GraphElement instance has an attribute table.
14   */
15  public interface IGraphElement extends IAttrTable {
16  
17    ////////////////////////////////////////////////////////////////////////
18  
19    String getElementTypeName();
20    String getName();
21    Object getData();
22    void setName(String name);
23    void setData(Object data);
24    
25    ////////////////////////////////////////////////////////////////////////
26  }