be.ac.ulg.montefiore.run.totem.domain.model
Interface DomainConvertor

All Known Implementing Classes:
DomainConvertorImpl

public interface DomainConvertor

Define all the methods that a convertor must implements i.e. - convert node id from String to int and inversely - convert link id from String to int and inversely - convert lsp id from String to int and inversely

Creation date: 12-Jan-2005 17:49:13

Author:
Fabian Skivee (skivee@run.montefiore.ulg.ac.be)

Method Summary
 void addLinkId(java.lang.String linkId)
          Add a conversion for the linkId link
 void addLspId(java.lang.String lspId)
          Add a conversion for the lspId LSP
 void addNodeId(java.lang.String nodeId)
          Add a conversion for the nodeId node
 java.lang.String getLinkId(int id)
          Convert a int link id in a String link id
 int getLinkId(java.lang.String id)
          Convert a String link id in a int link id
 java.lang.String getLspId(int id)
          Convert a int lsp id in a String lsp id
 int getLspId(java.lang.String id)
          Convert a String LSP id in a int LSP id
 int getMaxLinkId()
          Get the max link int id
 int getMaxLspId()
          Get the max LSP int id
 int getMaxNodeId()
          Get the max node int id
 java.lang.String getNodeId(int id)
          Convert a int node id in a String node id
 int getNodeId(java.lang.String id)
          Convert a String node id in a int node id
 void removeLinkId(java.lang.String linkId)
          Remove the conversion for the link linkId
 void removeLspId(java.lang.String lspId)
          Remove the conversion for the lspId LSP
 void removeNodeId(java.lang.String nodeId)
          Remove the conversion for the node nodeId
 void renameLinkId(java.lang.String oldId, java.lang.String newId)
          Rename a Link without changing its int id
 void renameLspId(java.lang.String oldId, java.lang.String newId)
          Rename an LSP without changing its int id
 void renameNodeId(java.lang.String oldId, java.lang.String newId)
          Rename a Node without changing its int id
 

Method Detail

getMaxNodeId

int getMaxNodeId()
Get the max node int id

Returns:

getNodeId

int getNodeId(java.lang.String id)
              throws NodeNotFoundException
Convert a String node id in a int node id

Parameters:
id -
Returns:
Throws:
NodeNotFoundException

getNodeId

java.lang.String getNodeId(int id)
                           throws NodeNotFoundException
Convert a int node id in a String node id

Parameters:
id -
Returns:
Throws:
NodeNotFoundException

addNodeId

void addNodeId(java.lang.String nodeId)
               throws NodeAlreadyExistException
Add a conversion for the nodeId node

Parameters:
nodeId -
Throws:
NodeAlreadyExistException

removeNodeId

void removeNodeId(java.lang.String nodeId)
                  throws NodeNotFoundException
Remove the conversion for the node nodeId

Parameters:
nodeId -
Throws:
NodeNotFoundException

getMaxLinkId

int getMaxLinkId()
Get the max link int id

Returns:

getLinkId

int getLinkId(java.lang.String id)
              throws LinkNotFoundException
Convert a String link id in a int link id

Parameters:
id -
Returns:
Throws:
LinkNotFoundException

getLinkId

java.lang.String getLinkId(int id)
                           throws LinkNotFoundException
Convert a int link id in a String link id

Parameters:
id -
Returns:
Throws:
LinkNotFoundException

addLinkId

void addLinkId(java.lang.String linkId)
               throws LinkAlreadyExistException
Add a conversion for the linkId link

Parameters:
linkId -
Throws:
LinkAlreadyExistException

removeLinkId

void removeLinkId(java.lang.String linkId)
                  throws LinkNotFoundException
Remove the conversion for the link linkId

Parameters:
linkId -
Throws:
LinkNotFoundException

getMaxLspId

int getMaxLspId()
Get the max LSP int id

Returns:

getLspId

int getLspId(java.lang.String id)
             throws LspNotFoundException
Convert a String LSP id in a int LSP id

Parameters:
id -
Returns:
Throws:
LspNotFoundException

getLspId

java.lang.String getLspId(int id)
                          throws LspNotFoundException
Convert a int lsp id in a String lsp id

Parameters:
id -
Returns:
Throws:
LspNotFoundException

addLspId

void addLspId(java.lang.String lspId)
              throws LspAlreadyExistException
Add a conversion for the lspId LSP

Parameters:
lspId -
Throws:
LspAlreadyExistException

removeLspId

void removeLspId(java.lang.String lspId)
                 throws LspNotFoundException
Remove the conversion for the lspId LSP

Parameters:
lspId -
Throws:
LspNotFoundException

renameLspId

void renameLspId(java.lang.String oldId,
                 java.lang.String newId)
                 throws LspNotFoundException,
                        LspAlreadyExistException
Rename an LSP without changing its int id

Parameters:
oldId -
newId -
Throws:
LspNotFoundException - if the oldId not in the index
LspAlreadyExistException - If the newId already in the index

renameNodeId

void renameNodeId(java.lang.String oldId,
                  java.lang.String newId)
                  throws NodeAlreadyExistException,
                         NodeNotFoundException
Rename a Node without changing its int id

Parameters:
oldId -
newId -
Throws:
NodeNotFoundException - if the oldId not in the index
NodeAlreadyExistException - If the newId already in the index

renameLinkId

void renameLinkId(java.lang.String oldId,
                  java.lang.String newId)
                  throws LinkAlreadyExistException,
                         LinkNotFoundException
Rename a Link without changing its int id

Parameters:
oldId -
newId -
Throws:
LinkNotFoundException - if the oldId not in the index
LinkAlreadyExistException - If the newId already in the index


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