com.free2be.dimensions.decider
Interface Decider

All Known Implementing Classes:
AbstractDeciderImpl, UserDeviceDecider

public interface Decider

This interface represents an "entity" that takes decision on what Tiles definitions to use, depending on situations that the programmer must specify.


Method Summary
 void addSuitableDecision(Decision decision)
          Adds a suitable decision to the list, so that it can be "decider" by this Decider.
 Decision decide(javax.servlet.http.HttpServletRequest request)
          Takes a decision, using the HttpServletRequest as a basis.
 java.util.Set getSuitableDecisionSet()
          Returns the set of all suitable decisions.
 

Method Detail

addSuitableDecision

void addSuitableDecision(Decision decision)
Adds a suitable decision to the list, so that it can be "decider" by this Decider.

Parameters:
decision - The suitable decision to add.

getSuitableDecisionSet

java.util.Set getSuitableDecisionSet()
Returns the set of all suitable decisions.

Returns:
The set of suitable decisions.

decide

Decision decide(javax.servlet.http.HttpServletRequest request)
Takes a decision, using the HttpServletRequest as a basis.

Parameters:
request - The request to analyze.
Returns:
The taken decision, that must be in the set returned by getSuitableDecisionSet