~seh999/jcog/proto2

« back to all changes in this revision

Viewing changes to cog/org/opencog/atom/Net.java

  • Committer: SeH
  • Date: 2009-09-14 01:39:19 UTC
  • Revision ID: seh999@gmail.com-20090914013919-nv003nfxm68y52ly
1) re-organizations in Net, AtomNet interfaces.  2) more comments, references, and documentation - mostly referring to OpenCog wiki pages.  3) miscellaneous additions and changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
package org.opencog.atom;
2
2
 
3
 
import org.opencog.Atom;
4
 
 
5
 
/**
6
 
 * Net = Hypergraph  
7
 
 * 
8
 
 * @see http://www.kobrix.com/javadocs/hgcore/org/hypergraphdb/HyperGraph.html */
 
3
import java.util.Iterator;
9
4
 
10
5
public interface Net<A> {
11
6
 
12
 
        public Iterable<A> getNeighbors(A a, boolean fanIn, boolean fanOut /*, String linkType, boolean subClasses*/);
13
 
        
14
 
        /** @return  true if added, false if not added */
15
 
        public boolean addAtom(A a);
16
 
 
17
 
        /** @return true if added, false if not added */
18
 
        public boolean addLink(A l, A... trail);
19
 
        
20
 
        /** number of atoms in the space */
21
 
        public int getSize();
 
7
        //public Iterable<A> getNeighbors(A a, boolean fanIn, boolean fanOut /*, String linkType, boolean subClasses*/);
 
8
 
 
9
        public Iterator<A> iterateObjects();
 
10
 
 
11
        public Iterable<A> getIncoming(A a);
 
12
 
 
13
        public Iterable<A> getOutgoing(A a);
22
14
 
23
15
}