Esri Geoportal Server
1.2.9

com.esri.gpt.framework.robots
Interface WinningStrategy


public interface WinningStrategy

Winning strategy.

Determines how a winner will be selected.

See Also:
MatchingStrategy

Field Summary
static WinningStrategy FIRST_MATCH_STRATEGY
          This strategy always chooses first winner from the list.
static WinningStrategy LONGEST_PATH_STRATEGY
          This strategy chooses a winner with the longest path.
 
Method Summary
 Access selectWinner(List<Access> candidates)
          Selects a single winner amongst the candidates.
 

Field Detail

FIRST_MATCH_STRATEGY

static final WinningStrategy FIRST_MATCH_STRATEGY
This strategy always chooses first winner from the list.


LONGEST_PATH_STRATEGY

static final WinningStrategy LONGEST_PATH_STRATEGY
This strategy chooses a winner with the longest path.

Method Detail

selectWinner

Access selectWinner(List<Access> candidates)
Selects a single winner amongst the candidates.

Parameters:
candidates - list of candidates
Returns:
a winner or null if no winner (for example: because empty list of candidates)

Esri Geoportal Server
1.2.9

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.