SAP ABAP Class CL_WDR_OTHELLO (Help Class for Othello Example)
Hierarchy
☛
SAP_UI (Software Component) User Interface Technology
⤷
BC-WD-ABA (Application Component) Web Dynpro ABAP
⤷
SWDP_DEMO (Package) Demo Applications

⤷

⤷

Meta Relationship - Using
# | Relationship type | Using | Short Description | Created on |
---|---|---|---|---|
1 | Inheritance (c INHERITING FROM c_ref) | CL_WD_COMPONENT_ASSISTANCE | Basis for a Web Dynpro assistance class | 20060816 |
Properties
Class | CL_WDR_OTHELLO | |
Short Description | Help Class for Othello Example | |
Super Class | CL_WD_COMPONENT_ASSISTANCE | Basis for a Web Dynpro assistance class |
Instantiability of a Class | 2 | Public |
Final |
General Data
Message Class | ||
Program status | ||
Category | 0 | |
Package | SWDP_DEMO | Demo Applications |
Created | 20040721 | SAP |
Last change | 20090618 | SAP |
Shared Memory-enabled | ||
Fixed point arithmetic | ||
Unicode checks active |
Forward declarations
# | Type group / Object type | Type | Type Description |
---|---|---|---|
1 | ![]() |
Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) |
Interfaces
Class CL_WDR_OTHELLO has no interface implemented.
Friends
Class CL_WDR_OTHELLO has no friend class.
Attributes
# | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
Constant | Public | Type reference (TYPE) | I | 1 | ID of White Player | 20040721 | |
2 | ![]() |
Constant | Public | Type reference (TYPE) | I | 2 | ID of Red Player | 20040721 | |
3 | ![]() |
Constant | Public | Type reference (TYPE) | WDR_TEXT_KEY | '001' | Web Dynpro: Text Key | 20060816 | |
4 | ![]() |
Constant | Public | Type reference (TYPE) | WDR_TEXT_KEY | '002' | Web Dynpro: Text Key | 20060816 | |
5 | ![]() |
Constant | Public | Type reference (TYPE) | WDR_TEXT_KEY | '003' | Web Dynpro: Text Key | 20060816 | |
6 | ![]() |
Constant | Public | Type reference (TYPE) | WDR_TEXT_KEY | '004' | Web Dynpro: Text Key | 20060816 | |
7 | ![]() |
Constant | Public | Type reference (TYPE) | I | 0 | Empty Space | 20040721 | |
8 | ![]() |
Constant | Public | Type reference (TYPE) | I | 1 | Occupied by red | 20040721 | |
9 | ![]() |
Constant | Public | Type reference (TYPE) | I | 2 | Occupied by red | 20040721 | |
10 | ![]() |
Instance attribute | Public | Type reference (TYPE) | T_BOARD | Board | 20040722 | ||
11 | ![]() |
Instance attribute | Public | Type reference (TYPE) | I | Size of Board | 20040721 | ||
12 | ![]() |
Instance attribute | Public | Type reference (TYPE) | I | Number of moves the computer player can see ahead | 20040723 | ||
13 | ![]() |
Instance attribute | Public | Type reference (TYPE) | I | Current Number of Red Counters | 20040721 | ||
14 | ![]() |
Instance attribute | Public | Type reference (TYPE) | I | Current Number of White Counters | 20040721 |
Methods
# | Method | Level | Visibility | Method type | Description | Created on |
---|---|---|---|---|---|---|
1 | ![]() |
Instance method | Protected | Method | 20040721 | |
2 | ![]() |
Instance method | Protected | Method | 20040722 | |
3 | ![]() |
Instance method | Protected | Method | 20040721 | |
4 | ![]() |
Instance method | Protected | Method | 20040721 | |
5 | ![]() |
Instance method | Protected | Method | 20040722 | |
6 | ![]() |
Instance method | Public | Method | 20060816 | |
7 | ![]() |
Instance method | Public | Method | 20040721 | |
8 | ![]() |
Instance method | Public | Method | 20040721 | |
9 | ![]() |
Instance method | Public | Method | 20040722 | |
10 | ![]() |
Instance method | Public | Method | 20040723 | |
11 | ![]() |
Instance method | Public | Method | 20040721 | |
12 | ![]() |
Instance method | Protected | Method | 20040721 |
Events
Class CL_WDR_OTHELLO has no event.
Types
# | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
---|---|---|---|---|---|---|---|
1 | TT_ROW_COLUMN | Public | See coding | 20040722 | TT_ROW_COLUMN type standard table of t_row_column
|
||
2 | T_BOARD | Public | See coding | 20040722 | T_BOARD type standard table of i
|
||
3 | T_ROW_COLUMN | Public | See coding | 20040722 | begin of T_ROW_COLUMN,
row type i,
column type i,
end of t_row_column
|
Method Signatures
Method CALC_NUM_TOKEN Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IT_BOARD | Value transfer | Type reference (TYPE) | T_BOARD | 20040723 | |||
2 | ![]() |
I_TOKEN | Value transfer | Type reference (TYPE) | I | 20040721 | |||
3 | ![]() |
R_NUM_TOKEN | Value transfer | Type reference (TYPE) | I | 20040721 |
Method CALC_NUM_TOKEN on class CL_WDR_OTHELLO has no exception.
Method EXECUTE_MOVE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
CT_BOARD | Value transfer | Type reference (TYPE) | T_BOARD | 20040722 | |||
2 | ![]() |
E_IS_LEGAL_MOVE | Value transfer | Type reference (TYPE) | ABAP_BOOL | 20040722 | |||
3 | ![]() |
E_NUM_RED_TOKEN | Value transfer | Type reference (TYPE) | I | 20040723 | |||
4 | ![]() |
E_NUM_WHITE_TOKEN | Value transfer | Type reference (TYPE) | I | 20040723 | |||
5 | ![]() |
I_COLUMN | Value transfer | Type reference (TYPE) | I | 20040722 | |||
6 | ![]() |
I_IS_TEST_MODE | Value transfer | Type reference (TYPE) | ABAP_BOOL | 20040722 | |||
7 | ![]() |
I_ROW | Value transfer | Type reference (TYPE) | I | 20040722 | |||
8 | ![]() |
I_TOKEN_CUR_PLAYER | Value transfer | Type reference (TYPE) | I | 20040722 | |||
9 | ![]() |
I_TOKEN_OTHER_PLAYER | Value transfer | Type reference (TYPE) | I | 20040722 |
Method EXECUTE_MOVE on class CL_WDR_OTHELLO has no exception.
Method EXECUTE_MOVE_BY_DIRECTION Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
CT_BOARD | Value transfer | Type reference (TYPE) | T_BOARD | 20040722 | |||
2 | ![]() |
E_IS_LEGAL_DIRECTION | Value transfer | Type reference (TYPE) | ABAP_BOOL | 20040722 | |||
3 | ![]() |
I_COLUMN | Value transfer | Type reference (TYPE) | I | 20040721 | |||
4 | ![]() |
I_COLUMN_INCREMENT | Value transfer | Type reference (TYPE) | I | 20040721 | |||
5 | ![]() |
I_IS_TEST_MODE | Value transfer | Type reference (TYPE) | ABAP_BOOL | 20040722 | |||
6 | ![]() |
I_ROW | Value transfer | Type reference (TYPE) | I | 20040721 | |||
7 | ![]() |
I_ROW_INCREMENT | Value transfer | Type reference (TYPE) | I | 20040721 | |||
8 | ![]() |
I_TOKEN_CUR_PLAYER | Value transfer | Type reference (TYPE) | I | 20040721 | |||
9 | ![]() |
I_TOKEN_OTHER_PLAYER | Value transfer | Type reference (TYPE) | I | 20040721 |
Method EXECUTE_MOVE_BY_DIRECTION on class CL_WDR_OTHELLO has no exception.
Method FIND_TOKEN Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
CT_BOARD | Value transfer | Type reference (TYPE) | T_BOARD | 20040722 | |||
2 | ![]() |
E_TOKEN_FOUND | Value transfer | Type reference (TYPE) | ABAP_BOOL | 20040722 | |||
3 | ![]() |
I_COLUMN | Value transfer | Type reference (TYPE) | I | 20040721 | |||
4 | ![]() |
I_COLUMN_INCREMENT | Value transfer | Type reference (TYPE) | I | 20040721 | |||
5 | ![]() |
I_REPLACE | Value transfer | Type reference (TYPE) | ABAP_BOOL | 20040721 | |||
6 | ![]() |
I_ROW | Value transfer | Type reference (TYPE) | I | 20040721 | |||
7 | ![]() |
I_ROW_INCREMENT | Value transfer | Type reference (TYPE) | I | 20040721 | |||
8 | ![]() |
I_TOKEN | Value transfer | Type reference (TYPE) | I | 20040721 |
Method FIND_TOKEN on class CL_WDR_OTHELLO has no exception.
Method GET_POSSIBLE_MOVES Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
CT_BOARD | Value transfer | Type reference (TYPE) | T_BOARD | 20040722 | |||
2 | ![]() |
ET_POSSIBLE_MOVES | Value transfer | Type reference (TYPE) | TT_ROW_COLUMN | 20040722 | |||
3 | ![]() |
I_TOKEN_CUR_PLAYER | Value transfer | Type reference (TYPE) | I | 20040722 | |||
4 | ![]() |
I_TOKEN_OTHER_PLAYER | Value transfer | Type reference (TYPE) | I | 20040722 |
Method GET_POSSIBLE_MOVES on class CL_WDR_OTHELLO has no exception.
Method GET_TEXT Signature
Method GET_TEXT on class CL_WDR_OTHELLO has no parameter.
Method GET_TEXT on class CL_WDR_OTHELLO has no exception.
Method GET_TOKEN Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IT_BOARD | Value transfer | Type reference (TYPE) | T_BOARD | 20040722 | |||
2 | ![]() |
I_COLUMN | Value transfer | Type reference (TYPE) | I | 20040721 | |||
3 | ![]() |
I_ROW | Value transfer | Type reference (TYPE) | I | 20040721 | |||
4 | ![]() |
R_TOKEN | Value transfer | Type reference (TYPE) | I | 20040721 |
Method GET_TOKEN on class CL_WDR_OTHELLO has no exception.
Method INIT Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
I_BOARD_SIZE | Value transfer | Type reference (TYPE) | I | 20040721 | |||
2 | ![]() |
I_NUM_AI_LOOK_AHEAD_TURNS | Value transfer | Type reference (TYPE) | I | 20040723 |
Method INIT on class CL_WDR_OTHELLO has no exception.
Method IS_END_OF_GAME Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
I_CUR_PLAYER | Value transfer | Type reference (TYPE) | I | 20040722 | |||
2 | ![]() |
R_IS_END_OF_GAME | Value transfer | Type reference (TYPE) | ABAP_BOOL | 20040722 |
Method IS_END_OF_GAME on class CL_WDR_OTHELLO has no exception.
Method MAKE_AI_MOVE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
I_CUR_PLAYER | Value transfer | Type reference (TYPE) | I | 20040723 |
Method MAKE_AI_MOVE on class CL_WDR_OTHELLO has no exception.
Method PLACE_TOKEN Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
I_COLUMN | Value transfer | Type reference (TYPE) | I | 20040721 | |||
2 | ![]() |
I_CUR_PLAYER | Value transfer | Type reference (TYPE) | I | 20040721 | |||
3 | ![]() |
I_ROW | Value transfer | Type reference (TYPE) | I | 20040721 | |||
4 | ![]() |
R_IS_LEGAL_MOVE | Value transfer | Type reference (TYPE) | ABAP_BOOL | 20040721 |
Method PLACE_TOKEN on class CL_WDR_OTHELLO has no exception.
Method SET_TOKEN Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
CT_BOARD | Value transfer | Type reference (TYPE) | T_BOARD | 20040722 | |||
2 | ![]() |
I_COLUMN | Value transfer | Type reference (TYPE) | I | 20040721 | |||
3 | ![]() |
I_ROW | Value transfer | Type reference (TYPE) | I | 20040721 | |||
4 | ![]() |
I_TOKEN | Value transfer | Type reference (TYPE) | I | 20040721 |
Method SET_TOKEN on class CL_WDR_OTHELLO has no exception.
History
Last changed by/on | SAP | 20090618 |
SAP Release Created in | 700 |