クラス rcsc::FormationDT

formation which utilizes Delaunay Triangulation [詳細]

#include <formation_dt.h>

rcsc::FormationDTに対する継承グラフ

rcsc::Formation すべてのメンバ一覧

Public メソッド

 FormationDT ()
 just call the base class constructor to initialize formation method name
const std::vector< Param > & params () const
 simple accessor.
const DelaunayTriangulationtriangulation () const
 get the delaunay triangulation
virtual std::string methodName () const
 get the name of this formation
virtual Snapshot createDefaultParam ()
 create default formation. assign role and initial positions.
virtual std::string getRoleName (const int unum) const
 get the role name of the specified player
virtual Vector2D getPosition (const int unum, const Vector2D &focus_point) const
 get position for the current focus point
virtual void getPositions (const Vector2D &focus_point, std::vector< Vector2D > &positions) const
virtual void train (const std::list< Snapshot > &train_data)
 update formation paramter using training data set
virtual bool read (std::istream &is)
 restore data from the input stream.
virtual std::ostream & print (std::ostream &os) const
 put data to the output stream.

Static Public メソッド

static std::string name ()
 static method. get formation method name
static Formationcreate ()
 static factory method. create new object

Protected メソッド

virtual void createNewRole (const int unum, const std::string &role_name, const SideType type)
 create new role parameter.
virtual void setRoleName (const int unum, const std::string &name)
 set the role name of the specified player

構成

struct  Param
 training data object [詳細]

説明

formation which utilizes Delaunay Triangulation


関数

const std::vector< Param >& rcsc::FormationDT::params (  )  const [inline]

simple accessor.

戻り値:
const reference to the param instance

static std::string rcsc::FormationDT::name (  )  [inline, static]

static method. get formation method name

戻り値:
method name string

static Formation* rcsc::FormationDT::create (  )  [inline, static]

static factory method. create new object

戻り値:
new object

const DelaunayTriangulation& rcsc::FormationDT::triangulation (  )  const [inline]

get the delaunay triangulation

戻り値:
const reference to the triangulation instance

virtual std::string rcsc::FormationDT::methodName (  )  const [inline, virtual]

get the name of this formation

戻り値:
name string

rcsc::Formationを実装しています。

Formation::Snapshot rcsc::FormationDT::createDefaultParam (  )  [virtual]

create default formation. assign role and initial positions.

戻り値:
snapshow variable for the initial state(ball pos=(0,0)).

rcsc::Formationを実装しています。

void rcsc::FormationDT::createNewRole ( const int  unum,
const std::string &  role_name,
const SideType  type 
) [protected, virtual]

create new role parameter.

引数:
unum target player's number
role_name new role name
type side type of this parameter

rcsc::Formationを実装しています。

void rcsc::FormationDT::setRoleName ( const int  unum,
const std::string &  name 
) [protected, virtual]

set the role name of the specified player

引数:
unum target player's number
name role name string.

rcsc::Formationを実装しています。

std::string rcsc::FormationDT::getRoleName ( const int  unum  )  const [virtual]

get the role name of the specified player

引数:
unum target player's number
戻り値:
role name string. if empty string is returned, that means no role parameter is assigned for unum.

rcsc::Formationを実装しています。

Vector2D rcsc::FormationDT::getPosition ( const int  unum,
const Vector2D focus_point 
) const [virtual]

get position for the current focus point

引数:
unum player number
forcus_point current focus point, usually ball position.

rcsc::Formationを実装しています。

void rcsc::FormationDT::train ( const std::list< Snapshot > &  train_data  )  [virtual]

update formation paramter using training data set

引数:
train_data training data container

bool rcsc::FormationDT::read ( std::istream &  is  )  [virtual]

restore data from the input stream.

引数:
is reference to the input stream.
戻り値:
parsing result

rcsc::Formationを実装しています。

std::ostream & rcsc::FormationDT::print ( std::ostream &  os  )  const [virtual]

put data to the output stream.

引数:
os reference to the output stream
戻り値:
reference to the output stream

rcsc::Formationを実装しています。


このクラスの説明は次のファイルから生成されました:
librcscに対してThu May 1 15:41:26 2008に生成されました。  doxygen 1.5.0