org.simBio.serialize
Class Collector

java.lang.Object
  extended by org.simBio.serialize.Collector
All Implemented Interfaces:
Visitor

public class Collector
extends java.lang.Object
implements Visitor

Make a List of all the Node values in the model tree.
Treeに存在する全てのNodeの値をListにまとめる。

Version:
$Id: Collector.java,v 1.3 2006/12/07 02:11:28 nsarai Exp $
Author:
Nobuaki Sarai

Constructor Summary
Collector(Component component, java.util.List list)
          Collect values.
 
Method Summary
 void visit(Component component)
           
 void visit(Composite composite)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Collector

public Collector(Component component,
                 java.util.List list)
Collect values.

Parameters:
component - root of the tree
list - list of values
Method Detail

visit

public void visit(Component component)
Specified by:
visit in interface Visitor
Parameters:
component - component Node of the model tree
See Also:
Visitor.visit(org.simBio.core.Component)

visit

public void visit(Composite composite)
Specified by:
visit in interface Visitor
Parameters:
composite - composite Node of the model tree
See Also:
Visitor.visit(org.simBio.core.Composite)


Copyright © 2002-2008 Cell/Biodinamics simulation project. All Rights Reserved.