org.jminor.common.model
Interface ItemRandomizer.RandomItem<T>

All Superinterfaces:
Serializable
Enclosing interface:
ItemRandomizer<T>

public static interface ItemRandomizer.RandomItem<T>
extends Serializable


Method Summary
 void decrementWeight()
          Decrements the weight value assigned to this random item
 T getItem()
           
 int getWeight()
           
 void incrementWeight()
          Increments the weight value assigned to this random item
 boolean isEnabled()
           
 void setEnabled(boolean value)
           
 void setWeight(int weight)
           
 

Method Detail

incrementWeight

void incrementWeight()
Increments the weight value assigned to this random item


decrementWeight

void decrementWeight()
Decrements the weight value assigned to this random item


setWeight

void setWeight(int weight)
Parameters:
weight - the random weight assigned to this item

getWeight

int getWeight()
Returns:
the random weight assigned to this item

isEnabled

boolean isEnabled()
Returns:
true if this item is enabled

setEnabled

void setEnabled(boolean value)
Parameters:
value - true if this item should be enabled

getItem

T getItem()
Returns:
the item this random item represents