# 関数対応表 artisoc4とartisoc Cloudの関数の対応についてまとめています。 引数など細かい仕様が異なる場合がありますので、詳しくは[関数仕様](https://artisoc-cloud.kke.co.jp/documents/functions/index.html "関数仕様")を参照してください。 ## 数値計算 ```eval_rst .. list-table:: :header-rows: 1 :widths: 12, 12 * - artisoc4 - artisoc Cloud * - Abs - `abs `_ * - Atn - `atan `_ * - Cos - `cos `_ * - DegreeToRad - `radians `_ * - Exp - `exp `_ * - Int - `int `_ * - Log - `log `_ * - NormInv - `normalvariate `_ * - Pi - `pi `_ * - RadToDegree - `degrees `_ * - Rnd - `rand `_ * - Round - `round `_ * - SetRandomSeed - (なし) * - Sin - `sin `_ * - Sinh - `sinh `_ * - Sqr - `sqrt `_ * - Tan - `tan `_ * - Tanh - `tanh `_ ``` ## 文字列操作 ```eval_rst .. list-table:: :header-rows: 1 :widths: 12, 12 * - artisoc4 - artisoc Cloud * - CountToken - `len `_ * - GetToken - (リストのインデックス指定で記述) * - Instr - in * - Left - (リストのスライスで記述) * - Len - `len `_ * - Mid - (リストのスライスで記述) * - Replace - `replace `_ * - Right - (リストのスライスで記述) * - StrComp - 演算子==で記述 * - Trim - `strip `_ ``` ## データ型変換 ```eval_rst .. list-table:: :header-rows: 1 :widths: 12, 12 * - artisoc4 - artisoc Cloud * - Cbool - `bool `_ * - CDbl - `float `_ * - Cint - `int `_ * - Clong - `int `_ * - Cstr - `str `_ ``` ## エージェント操作(生成・削除) ```eval_rst .. list-table:: :header-rows: 1 :widths: 12, 12 * - artisoc4 - artisoc Cloud * - CreateAgt - `create_agt `_ * - DelAgt - `del_agt `_ * - KillAgt - `kill_agt `_ * - TerminateAgt - (なし) ``` ## エージェント操作(その他) ```eval_rst .. list-table:: :header-rows: 1 :widths: 12, 12 * - artisoc4 - artisoc Cloud * - GetHistory - `get_history `_ * - SpecifyAgttype - `specify_agttype `_ * - SpecifyKillAgt - `specify_kill_agt `_ ``` ## 空間エージェント関数(移動) ```eval_rst .. list-table:: :header-rows: 1 :widths: 12, 12 * - artisoc4 - artisoc Cloud * - Forward - `forward `_ * - ForwardDirectionCell - `forward_direction_sqgrid `_ * - MoveToCenter - `move_center `_ * - MoveToSpaceOwnCell - `move_space_around_own_sqgrid `_ * - | MoveToSpaceAgtSetCell | MoveToSpacePositionCell - `move_space_around_position_sqgrid `_ * - Pursue - `pursue `_ * - Turn - `turn `_ * - TurnAgt - `turn_agt `_ ``` ## 空間エージェント関数(空間操作) ```eval_rst .. list-table:: :header-rows: 1 :widths: 12, 12 * - artisoc4 - artisoc Cloud * - GetHeightSpaceOwn - `get_height_space_own `_ * - GetWidthSpaceOwn - `get_width_space_own `_ * - ReverseDirectionCell - `reverse_direction_sqgrid `_ ``` ## 空間エージェント関数(エージェント集合生成) ```eval_rst .. list-table:: :header-rows: 1 :widths: 12, 12 * - artisoc4 - artisoc Cloud * - | MakeAllAgtsetAroundOwn | MakeOneAgtsetAroundOwn - `make_agtset_around_own `_ * - | MakeAllAgtsetAroundOwnCell | MakeOneAgtsetAroundOwnCell - `make_agtset_around_own_sqgrid `_ ``` ## エージェント集合操作(基本操作) ```eval_rst .. list-table:: :header-rows: 1 :widths: 12, 12 * - artisoc4 - artisoc Cloud * - AddAgt - `add `_ * - | DelAgtSet2 | RemoveAgt - `discard `_ * - ClearAgtSet - `clear `_ * - CountAgtSet - `count_agtset `_ ``` ## エージェント集合操作(集合演算) ```eval_rst .. list-table:: :header-rows: 1 :widths: 12, 12 * - artisoc4 - artisoc Cloud * - MakeCommonAgtset - `intersection `_ * - MakeDiffAgtset - `symmetric_difference `_ * - MergeAgtSet - `union `_ * - DelAgtset - `difference `_ ``` ## エージェント集合操作(配置) ```eval_rst .. list-table:: :header-rows: 1 :widths: 12, 12 * - artisoc4 - artisoc Cloud * - RandomPutAgtset - `random_put_agtset `_ * - RandomPutAgtset - `random_put_agtset_sqgrid `_ ``` ## エージェント集合操作(生成) ```eval_rst .. list-table:: :header-rows: 1 :widths: 12, 12 * - artisoc4 - artisoc Cloud * - | MakeAgtset | MakeAgtsetSpace - `make_agtset `_ * - | MakeAllAgtsetAroundPosition | MakeOneAgtsetAroundPosition - `make_agtset_around_position `_ * - | MakeAllAgtsetAroundPositionCell | MakeOneAgtsetAroundPositionCell - `make_agtset_around_position_sqgrid `_ ``` ## エージェント集合操作(その他) ```eval_rst .. list-table:: :header-rows: 1 :widths: 12, 12 * - artisoc4 - artisoc Cloud * - SortAgtset - | `make_agtlist `_ | `sort_agtlist `_ ``` ## 空間操作 ```eval_rst .. list-table:: :header-rows: 1 :widths: 12, 12 * - artisoc4 - artisoc Cloud * - GetDirection - `get_direction `_ * - GetHeightSpace - `get_height_space `_ * - GetHeightSpaceOwn - `get_height_space_own `_ * - GetLayerSpace - `get_layer_space `_ * - GetRideSpace - `get_ride_space `_ * - GetWidthSpace - `get_width_space `_ * - GetWidthSpaceOwn - `get_width_space_own `_ * - MeasureDistance - `mesaure_distance `_ * - SpecifyLoop - `specify_loop `_ ``` ## ファイル入出力 ```eval_rst .. list-table:: :header-rows: 1 :widths: 12, 12 * - artisoc4 - artisoc Cloud * - CloseFile - `close `_ * - OpenFile - `open `_ * - ReadFile - `read `_ * - WriteFile - `write `_ ``` ## その他 ```eval_rst .. list-table:: :header-rows: 1 :widths: 12, 12 * - artisoc4 - artisoc Cloud * - ExitSimulation - `exit_simulation `_ * - GetCountStep - `count_step `_ * - Gradation - `gradation `_ * - HSV - `hsv `_ * - PauseSimulation - `pause_simulation `_ * - | Print | PrintLn - `print `_ * - RGB - `rgb `_ ```