nl.tudelft.pogamut.unreal.agent.module.shooting.util
Class FocusProvider

Package class diagram package FocusProvider
java.lang.Object
  extended by nl.tudelft.pogamut.unreal.agent.module.shooting.util.FocusProvider
All Implemented Interfaces:
cz.cuni.amis.pogamut.base3d.worldview.object.ILocated

public final class FocusProvider
extends Object
implements cz.cuni.amis.pogamut.base3d.worldview.object.ILocated

The focus point for a given location. Will self update.

Author:
mpkorstanje

Constructor Summary
FocusProvider()
          Creates a FocusProvider with no focus.
FocusProvider(cz.cuni.amis.pogamut.base3d.worldview.object.ILocated focus)
          Creates a FocusProvider with a given location
 
Method Summary
 void clearFocus()
           
 cz.cuni.amis.pogamut.base3d.worldview.object.ILocated getFocus()
           
 cz.cuni.amis.pogamut.base3d.worldview.object.Location getLocation()
          The location this focus is focused on.
 void setFocus(cz.cuni.amis.pogamut.base3d.worldview.object.ILocated focus)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FocusProvider

public FocusProvider(cz.cuni.amis.pogamut.base3d.worldview.object.ILocated focus)
Creates a FocusProvider with a given location

Parameters:
focus - the focus for this FocusProvider

FocusProvider

public FocusProvider()
Creates a FocusProvider with no focus.

Method Detail

getFocus

public cz.cuni.amis.pogamut.base3d.worldview.object.ILocated getFocus()
Returns:
the focus

setFocus

public void setFocus(cz.cuni.amis.pogamut.base3d.worldview.object.ILocated focus)
Parameters:
focus - the focus to set

getLocation

public cz.cuni.amis.pogamut.base3d.worldview.object.Location getLocation()
The location this focus is focused on.

Specified by:
getLocation in interface cz.cuni.amis.pogamut.base3d.worldview.object.ILocated

toString

public String toString()
Overrides:
toString in class Object

clearFocus

public void clearFocus()


Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.