be.ac.ulg.montefiore.run.totem.visualtopo.guiModules.topEdit.factory.idGenerator
Class SrcDstIdGenerator

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.visualtopo.guiModules.topEdit.factory.idGenerator.SrcDstIdGenerator
All Implemented Interfaces:
LinkIdGenerator

public class SrcDstIdGenerator
extends java.lang.Object
implements LinkIdGenerator

Generate Ids in the form [src]-[dst]. If the same id is already in the domain, add a number ([src]-[dst]-[num]).

Creation date: 3/10/2007

Author:
Gaƫl Monfort (monfort@run.montefiore.ulg.ac.be)

Constructor Summary
SrcDstIdGenerator(DomainDecorator domain)
           
 
Method Summary
 java.lang.String generate(Link link)
          Generate an id for the given link
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SrcDstIdGenerator

public SrcDstIdGenerator(DomainDecorator domain)
Method Detail

generate

public java.lang.String generate(Link link)
Description copied from interface: LinkIdGenerator
Generate an id for the given link

Specified by:
generate in interface LinkIdGenerator
Returns:


Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.