Enum EAITradeStrategyType
- java.lang.Object
-
- java.lang.Enum<EAITradeStrategyType>
-
- ch.sahits.game.openpatrician.engine.player.strategy.EAITradeStrategyType
-
- All Implemented Interfaces:
ch.sahits.game.openpatrician.model.player.BaseStrategyType<ch.sahits.game.openpatrician.model.player.IAITradeStrategy>,ch.sahits.game.openpatrician.model.player.IAITradeStrategyType,java.io.Serializable,java.lang.Comparable<EAITradeStrategyType>
public enum EAITradeStrategyType extends java.lang.Enum<EAITradeStrategyType> implements ch.sahits.game.openpatrician.model.player.IAITradeStrategyType
Strategy type for the trade strategy.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHEAP_PRODUCTIONCOLLECT_WARESCOLLECT_WARES_FOR_STORAGE_LOCATIONDELIVER_WARES_FROM_CENTRAL_STORAGEDYNAMIC_TRADE_ROUTEPRODUCTION_CHAINSUPPLY_HOMETOWNTRADE_ROUTE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ch.sahits.game.openpatrician.model.player.IAITradeStrategygetStrategy()java.util.Set<ch.sahits.game.openpatrician.model.player.ETradeStrategyPreference>getStrategyPreferrance()voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)static EAITradeStrategyTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static EAITradeStrategyType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CHEAP_PRODUCTION
public static final EAITradeStrategyType CHEAP_PRODUCTION
-
TRADE_ROUTE
public static final EAITradeStrategyType TRADE_ROUTE
-
DYNAMIC_TRADE_ROUTE
public static final EAITradeStrategyType DYNAMIC_TRADE_ROUTE
-
PRODUCTION_CHAIN
public static final EAITradeStrategyType PRODUCTION_CHAIN
-
SUPPLY_HOMETOWN
public static final EAITradeStrategyType SUPPLY_HOMETOWN
-
COLLECT_WARES_FOR_STORAGE_LOCATION
public static final EAITradeStrategyType COLLECT_WARES_FOR_STORAGE_LOCATION
-
DELIVER_WARES_FROM_CENTRAL_STORAGE
public static final EAITradeStrategyType DELIVER_WARES_FROM_CENTRAL_STORAGE
-
COLLECT_WARES
public static final EAITradeStrategyType COLLECT_WARES
-
-
Method Detail
-
values
public static EAITradeStrategyType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EAITradeStrategyType c : EAITradeStrategyType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EAITradeStrategyType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException- Throws:
org.springframework.beans.BeansException
-
getStrategy
public ch.sahits.game.openpatrician.model.player.IAITradeStrategy getStrategy()
- Specified by:
getStrategyin interfacech.sahits.game.openpatrician.model.player.BaseStrategyType<ch.sahits.game.openpatrician.model.player.IAITradeStrategy>
-
getStrategyPreferrance
public java.util.Set<ch.sahits.game.openpatrician.model.player.ETradeStrategyPreference> getStrategyPreferrance()
- Specified by:
getStrategyPreferrancein interfacech.sahits.game.openpatrician.model.player.IAITradeStrategyType
-
-