メソッド:
<integer>getNumInitialActionLists()
初期アクション リストの数を返します。
<node>getInitialActionList <index>index
インデックスで指定されたアクション リスト ノードを返します。
<boolean>appendInitialActionList <node>actionList
指定したアクション リスト ノードを追加して、成功したら true を返します。
<boolean>insertInitialActionList <node>actionList <index>index
指定したアクション リスト ノードを、指定したインデックスの位置に挿入して、成功したら true を返します。
<boolean>removeInitialActionList <index>index
インデックスで指定されたアクション リストを削除して、成功したら true を返します。
<boolean>hasInitialActionList <node>actionList <&index>index
index is In and Out parameter
指定されたアクション リスト ノードが存在する場合、true を返します。この場合、参照渡しインデックス変数内にあるノードのインデックスが返されます。
例:
--Open Particle View to watch the results particleFlow.OpenParticleView() --> $Particle_View:Particle View 01 @ [0.000000,0.000000,0.000000] --Create a new Particle Flow Source pfs = PF_Source() --> $PF_Source:PF Source 01 @ [0.000000,0.000000,0.000000] --Get the number of Events connected to the PF_Source - --there are none so far pfs.getNumInitialActionLists() --> 0 --Create a new empty event new_event = Event() --> $Event:Event 01 @ [0.000000,0.000000,0.000000] --Connect the new Event to the PF_Source by appending it to --the list of Initial Action Lists. --In result, a binding appears pfs.appendInitialActionList new_event --> true --Check again the number of Events connected to the PF_Source --As expected, there is one now pfs.getNumInitialActionLists() --> 1 --Get the one Event connected to PF_Source - --it is the Event_01 we created pfs.getInitialActionList 1 --> $Event:Event 01 @ [0.000000,0.000000,0.000000] --Now let’s create a second Event another_event = Event() --> $Event:Event 02 @ [0.000000,0.000000,0.000000] --This time we will not append to the list, but will insert the --new Event to the first position of the list pfs.insertInitialActionList another_event 1 --> true --Checking again the number of connected Events, --we see that there are two already pfs.getNumInitialActionLists() --> 2 --Let’s see the result of the Insertion - the first indexed Event --on the list is the second event we created... pfs.getInitialActionList 1 --> $Event:Event 02 @ [0.000000,0.000000,0.000000] --...while the first Event we created is now at indexed position 2 pfs.getInitialActionList 2 --> $Event:Event 01 @ [0.000000,0.000000,0.000000] --We can remove the first Event and thus disconnect it -- from the PF_Source pfs.removeInitialActionList 1 --> true --Checking the number of Events, there is only one connected now, --the second event is still in Particle View, but the binding is not --displayed anymore. pfs.getNumInitialActionLists() --> 1 --Let’s see which Events are on the list and which are not. --We will need a variable to pass by reference to get the results ind = 0 --> 0 --Calling this method with the first Event we created and the --variable passed by reference returns true which means the event --is actually on the list pfs.hasInitialActionList new_event &ind --> true --Checking the content of the variable shows the index 1 --of the Event on the list of connections ind --> 1 --On the other hand, the second Event we removed before --does not appear on the list - the method returns false. pfs.hasInitialActionList another_event &ind --> false
このインタフェースは下記で使用できます。