Mercurial > hg > Members > shoshi > TreeCMSv2
view src/treecms/memory/OnMemoryForest.java @ 23:77a894c0b919
commit
author | shoshi |
---|---|
date | Thu, 09 Jun 2011 01:03:48 +0900 |
parents | fa784faafc78 |
children | c1e7ec6b3d44 |
line wrap: on
line source
package treecms.memory; import treecms.api.Forest; import treecms.api.MonotonicTree; import treecms.api.NodeID; import treecms.tree.id.RandomNodeID; public class OnMemoryForest implements Forest { private final OnMemoryMonotonicTree m_tree; public OnMemoryForest() { NodeID id = new RandomNodeID(null); OnMemoryNode newNode = new OnMemoryNode(id,null); m_tree = OnMemoryMonotonicTree.createInstance(newNode,null); } @Override public MonotonicTree getMainTree() { return m_tree; } }