Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Lightweight Bartering Grid
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## lbg.peer.strategy.ranking
Class MergedRanking

    java.lang.Object
      lbg.peer.strategy.ranking.CommonRanking
          lbg.peer.strategy.ranking.MergedRanking

All Implemented Interfaces:
  Ranking

    public class MergedRanking

extends CommonRanking

MergedRanking stores the ranking resulting from the merging of multiple rankings (some of which may even be merged rankings themselves) by the Rankings class.

Author:
  Cyril Briquet

Constructor Summary
`MergedRanking(int[] peers_ranking)`

Method Summary
`int` | `getBlacklistedPeerCount()` Ranking implementation.
`int` | `getRankedPeerCount()` Ranking implementation.
`int` | `getUnrankedPeerCount()` Ranking implementation.
`int[]` | `peersRanking()` Ranking implementation.
`java.lang.String` | `toString()` Ranking implementation.

Methods inherited from class lbg.peer.strategy.ranking.CommonRanking
`getBlacklistedPeerRatio, getPeerCount, getRankedPeerRatio, getUnrankedPeerRatio`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### MergedRanking

    public MergedRanking(int[] peers_ranking)
                  throws GridException

Throws:
  `GridException`

Method Detail

### toString

    public java.lang.String toString()

  Description copied from class: `CommonRanking`
  Ranking implementation.

  Specified by:
    `toString` in interface `Ranking`
  Overrides:
    `toString` in class `CommonRanking`

### peersRanking

    public int[] peersRanking()

  Ranking implementation.

  Specified by:
    `peersRanking` in interface `Ranking`
  Specified by:
    `peersRanking` in class `CommonRanking`
  Returns:
    Peers ranking, or null if no Peers can be ranked

### getRankedPeerCount

    public int getRankedPeerCount()

  Ranking implementation.

  Specified by:
    `getRankedPeerCount` in interface `Ranking`
  Specified by:
    `getRankedPeerCount` in class `CommonRanking`

### getUnrankedPeerCount

    public int getUnrankedPeerCount()

  Ranking implementation.

  Specified by:
    `getUnrankedPeerCount` in interface `Ranking`
  Specified by:
    `getUnrankedPeerCount` in class `CommonRanking`

### getBlacklistedPeerCount

    public int getBlacklistedPeerCount()

  Ranking implementation.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Lightweight Bartering Grid
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

> Copyright (c) 2005-2008, Cyril Briquet, parts Xavier Dalem.