de.uni_paderborn.robots.robot.group9
Class AbstractStrategy

java.lang.Object
  |
  +--de.uni_paderborn.robots.robot.group9.AbstractStrategy
Direct Known Subclasses:
CardStrategy, EnergyStrategy, ExitStrategy, MoveStrategy, ReactableStrategy

public abstract class AbstractStrategy
extends java.lang.Object

AbstractStrategy


Field Summary
private  int cardWeight
          attribute for the weight of the cards
private  LAR currentRobot
          attribute currentRobot
private  int exitWeight
          attribute for the weight of the exit
private  LAR lar
          attribute lar for easy access
private  java.lang.String name
          name of the strategy
 
Constructor Summary
AbstractStrategy()
           
 
Method Summary
 int getCardWeight()
          read access for cardWeight
abstract  AbstractAction getCommand()
          get command
 LAR getCurrentRobot()
          read access for currentRobot
 int getExitWeight()
          read access for exitWeight
 LAR getLar()
          read access for lar
 java.lang.String getName()
          read access for name
 void removeYou()
          remove method
 int setCardWeight(int cardWeight)
          write access for cardWeight
 boolean setCurrentRobot(LAR value)
          write access for currentRobot
 int setExitWeight(int exitWeight)
          write access for exitWeight
 void setLar(LAR elem)
          write access for lar
 void setName(java.lang.String name)
          write access method for name
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

cardWeight

private int cardWeight
attribute for the weight of the cards

exitWeight

private int exitWeight
attribute for the weight of the exit

name

private java.lang.String name
name of the strategy

currentRobot

private LAR currentRobot
attribute currentRobot

lar

private LAR lar
attribute lar for easy access
Constructor Detail

AbstractStrategy

public AbstractStrategy()
Method Detail

getCommand

public abstract AbstractAction getCommand()
get command
Returns:
abstractAction the action to be performed

getExitWeight

public int getExitWeight()
read access for exitWeight

getName

public java.lang.String getName()
read access for name

getCardWeight

public int getCardWeight()
read access for cardWeight
Returns:
cardWeight the weight of the card strategy

setCardWeight

public int setCardWeight(int cardWeight)
write access for cardWeight
Returns:
cardWeight the weight of the card strategy

setExitWeight

public int setExitWeight(int exitWeight)
write access for exitWeight

setCurrentRobot

public boolean setCurrentRobot(LAR value)
write access for currentRobot

getCurrentRobot

public LAR getCurrentRobot()
read access for currentRobot

setName

public void setName(java.lang.String name)
write access method for name

setLar

public void setLar(LAR elem)
write access for lar

getLar

public LAR getLar()
read access for lar

removeYou

public void removeYou()
remove method