nl.tudelft.repository.XAMCRA
Class JNIXAMCRA

java.lang.Object
  extended by nl.tudelft.repository.XAMCRA.JNIXAMCRA

public class JNIXAMCRA
extends java.lang.Object

This class implements the JNI interface for XAMCRA : SAMCRA, TAMCRA, ... (TUDelft).

Creation date : 28 nov. 2005 11:23:05

Author:
Simon Balon (balon@run.montefiore.ulg.ac.be)

Constructor Summary
JNIXAMCRA()
           
 
Method Summary
static void jniaddLink(int srcId, int dstId, double cap, double[] qosMetric)
          Adds Link in XAMCRA database
static void jniaddNode(int nodeId)
          Adds Node in XAMCRA database
static void jniaddPath(int[] path, double reservation)
          Adds an already computed primary LSP to XAMCRA database
static int[] jnicomputePath(int src, int dst, double bandwidth, double[] qosConstraint, int ADDLSP)
          Computes a primary LSP with XAMCRA
static void jniinitXamcra(int numNodes, int numLinks, int nbMetrics, int xamcraVersion)
          Initializes XAMCRA High Level configuration, database filling,...
static void jnikillXamcra()
          Kills XAMCRA Unload XAMCRA from memory
static void jniprintXamcraDB()
           
static void jniremovePath(int[] path, double reservation)
          Remove an already computed primary LSP to XAMCRA database
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JNIXAMCRA

public JNIXAMCRA()
Method Detail

jniprintXamcraDB

public static void jniprintXamcraDB()

jniinitXamcra

public static void jniinitXamcra(int numNodes,
                                 int numLinks,
                                 int nbMetrics,
                                 int xamcraVersion)
Initializes XAMCRA High Level configuration, database filling,...

Parameters:
xamcraVersion - : specify if we want to use SAMCRA (type = 0) or TAMCRA (type = 1) or ...

jnikillXamcra

public static void jnikillXamcra()
Kills XAMCRA Unload XAMCRA from memory


jniaddNode

public static void jniaddNode(int nodeId)
                       throws AddDBException
Adds Node in XAMCRA database

Parameters:
nodeId -
Throws:
AddDBException

jniaddLink

public static void jniaddLink(int srcId,
                              int dstId,
                              double cap,
                              double[] qosMetric)
                       throws AddDBException
Adds Link in XAMCRA database

Parameters:
srcId -
dstId -
cap - (available) capacity of the link
Throws:
AddDBException

jniaddPath

public static void jniaddPath(int[] path,
                              double reservation)
                       throws AddDBException
Adds an already computed primary LSP to XAMCRA database

Parameters:
path - the path as a list of NODE ids
reservation - requested bandwidth
Throws:
AddDBException

jniremovePath

public static void jniremovePath(int[] path,
                                 double reservation)
                          throws AddDBException
Remove an already computed primary LSP to XAMCRA database

Parameters:
path - the path as a list of NODE ids
reservation - requested bandwidth
Throws:
AddDBException

jnicomputePath

public static int[] jnicomputePath(int src,
                                   int dst,
                                   double bandwidth,
                                   double[] qosConstraint,
                                   int ADDLSP)
                            throws AddDBException,
                                   NoRouteToHostException,
                                   RoutingException
Computes a primary LSP with XAMCRA

Parameters:
src -
dst -
bandwidth - requested bandwidth
ADDLSP - add the LSP to the database
Returns:
Throws:
AddDBException
NoRouteToHostException
RoutingException


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