View Javadoc

1   package org.lcsim.event;
2   
3   /**
4    * A single weighted relationship between two LCObjects. Stored in an
5    * LCCollection like any other LCObject.  The types of the objects is
6    * decoded in the collection parameters 'RelationFromType' and
7    * 'RelationToType'.
8    * 
9    * @author Guilherme Lima
10   * @version $Id: LCRelation.java,v 1.2 2005/04/26 20:49:37 tonyj Exp $
11   */
12  
13  public interface LCRelation {
14  
15      /** The 'from' object of the relation. 
16       */
17      public Object getFrom();
18  
19      /** The 'to' object of the relation. 
20       */
21      public Object getTo();
22  
23      /** The weight of the relation. 
24       */
25      public float getWeight();
26  } // class or interface
27