PolyLine
Class WeakStratification

java.lang.Object
  extended by PolyLine.WeakStratification

public class WeakStratification
extends java.lang.Object

A class which executes to assign all layer value of the nodes.

Creates layers of the vertices in this class.
Takes input as Realizer data structure and executes the Algorithm Assign Layers.

Copyright: Copyright (c) 2008

Company: Bangladesh University of engineering and technology


Field Summary
(package private)  Realizer realizer
          Input Realizer is set to this object
 
Constructor Summary
WeakStratification(Realizer realizer)
          Constructor for the objetc.
 
Method Summary
(package private)  void assignLayer()
          Execution of the algorithm is done in this method.
 Realizer getRealizer()
          Returns the realizer object.
 int max(int i, int j)
          Simple method of determining maximum between two integers.
 int min(int i, int j)
          Simple method of determining minimum between two integers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

realizer

Realizer realizer
Input Realizer is set to this object

Constructor Detail

WeakStratification

public WeakStratification(Realizer realizer)
Constructor for the objetc.

Parameters:
realizer - input Realizer object.
Method Detail

assignLayer

void assignLayer()
Execution of the algorithm is done in this method.


getRealizer

public Realizer getRealizer()
Returns the realizer object.

Returns:
Realizer returns the realizer object

max

public int max(int i,
               int j)
Simple method of determining maximum between two integers.

Parameters:
i - first integer
j - second integer
Returns:
returns the value of the maximum value between i and j.

min

public int min(int i,
               int j)
Simple method of determining minimum between two integers.

Parameters:
i - first integer
j - second integer
Returns:
returns the value of the minimum value between i and j.