net.sf.myra.antree.representation
Class ParentBranchEncoder

java.lang.Object
  extended by net.sf.myra.antree.representation.ParentBranchEncoder
All Implemented Interfaces:
BranchEncoder

public class ParentBranchEncoder
extends java.lang.Object
implements BranchEncoder

Default branch encoder. It uses the information from the node where the branch starts and also from the branch that leads to the originating node.

Version:
$Revision: 2320 $ $Date:: 2011-01-25 13:06:10#$
Author:
Fernando Esteban Barril Otero

Constructor Summary
ParentBranchEncoder()
           
 
Method Summary
 int encode(Branch branch)
          Returns the code of the specified branch.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParentBranchEncoder

public ParentBranchEncoder()
Method Detail

encode

public int encode(Branch branch)
Description copied from interface: BranchEncoder
Returns the code of the specified branch.

Specified by:
encode in interface BranchEncoder
Parameters:
branch - the branch to encode.
Returns:
the code of the specified branch.


Copyright © 2013. All Rights Reserved.