?? flocking.xml
字號:
<?xml version="1.0" encoding="UTF-8"?><XMLSeSAmModel version="0.2" globalAssert="true" compileDebugFunction="true" runDebugFunction="true" optimize="true" inline="true" closures="false" xmlns="http://www.simsesam.de/schemas/model"> <userType name="vector2D" id="UserType_0" type="composed"> <father systemID="RootType"/> <attribute id="ComposedTypeAttribute_0" name="x"> <doubleType/> </attribute> <attribute id="ComposedTypeAttribute_1" name="y"> <doubleType/> </attribute> </userType> <userFunction name="rotate_counterclockwise" id="UserFunction_0"> <functionCall> <call functionName="CreateComposedTypeValue"> <userType id="UserType_0"/> <call functionName="-"> <call functionName="*"> <call functionName="Cos"> <parameterID id="FunctionArgument_1"/> </call> <call functionName="GetComposedTypeValue"> <parameterID id="FunctionArgument_0"/> <composedAttribute composedTypeID="UserType_0" index="0"/> </call> </call> <call functionName="*"> <call functionName="Sin"> <parameterID id="FunctionArgument_1"/> </call> <call functionName="GetComposedTypeValue"> <parameterID id="FunctionArgument_0"/> <composedAttribute composedTypeID="UserType_0" index="1"/> </call> </call> </call> <call functionName="+"> <call functionName="*"> <call functionName="Cos"> <parameterID id="FunctionArgument_1"/> </call> <call functionName="GetComposedTypeValue"> <parameterID id="FunctionArgument_0"/> <composedAttribute composedTypeID="UserType_0" index="1"/> </call> </call> <call functionName="*"> <call functionName="Sin"> <parameterID id="FunctionArgument_1"/> </call> <call functionName="GetComposedTypeValue"> <parameterID id="FunctionArgument_0"/> <composedAttribute composedTypeID="UserType_0" index="0"/> </call> </call> </call> </call> </functionCall> <parameter name="input_vector" id="FunctionArgument_0"> <userType id="UserType_0"/> </parameter> <parameter name="input_angle" id="FunctionArgument_1"> <doubleType/> </parameter> <userType id="UserType_0"/> </userFunction> <userFunction name="norm_vector2D" id="UserFunction_1"> <functionCall> <call functionName="CreateComposedTypeValue"> <userType id="UserType_0"/> <call functionName="*"> <call functionName="GetComposedTypeValue"> <parameterID id="FunctionArgument_2"/> <composedAttribute composedTypeID="UserType_0" index="0"/> </call> <call functionName="/"> <double value="1.0"/> <call functionName="Sqrt"> <call functionName="+"> <call functionName="Sq"> <call functionName="GetComposedTypeValue"> <parameterID id="FunctionArgument_2"/> <composedAttribute composedTypeID="UserType_0" index="0"/> </call> </call> <call functionName="Sq"> <call functionName="GetComposedTypeValue"> <parameterID id="FunctionArgument_2"/> <composedAttribute composedTypeID="UserType_0" index="1"/> </call> </call> </call> </call> </call> </call> <call functionName="*"> <call functionName="GetComposedTypeValue"> <parameterID id="FunctionArgument_2"/> <composedAttribute composedTypeID="UserType_0" index="1"/> </call> <call functionName="/"> <double value="1.0"/> <call functionName="Sqrt"> <call functionName="+"> <call functionName="Sq"> <call functionName="GetComposedTypeValue"> <parameterID id="FunctionArgument_2"/> <composedAttribute composedTypeID="UserType_0" index="0"/> </call> </call> <call functionName="Sq"> <call functionName="GetComposedTypeValue"> <parameterID id="FunctionArgument_2"/> <composedAttribute composedTypeID="UserType_0" index="1"/> </call> </call> </call> </call> </call> </call> </call> </functionCall> <parameter name="input_vector" id="FunctionArgument_2"> <userType id="UserType_0"/> </parameter> <userType id="UserType_0"/> </userFunction> <userFunction name="transfer_direction_to_normed_vector2D" id="UserFunction_2"> <functionCall> <call userFunctionID="UserFunction_1"> <call userFunctionID="UserFunction_0"> <call functionName="CreateComposedTypeValue"> <userType id="UserType_0"/> <double value="1.0"/> <double value="0.0"/> </call> <parameterID id="FunctionArgument_3"/> </call> </call> </functionCall> <parameter name="input_direction" id="FunctionArgument_3"> <doubleType/> </parameter> <userType id="UserType_0"/> </userFunction> <userFunction name="scale_vector2D" id="UserFunction_3"> <functionCall> <call functionName="CreateComposedTypeValue"> <userType id="UserType_0"/> <call functionName="*"> <parameterID id="FunctionArgument_5"/> <call functionName="GetComposedTypeValue"> <parameterID id="FunctionArgument_4"/> <composedAttribute composedTypeID="UserType_0" index="0"/> </call> </call> <call functionName="*"> <parameterID id="FunctionArgument_5"/> <call functionName="GetComposedTypeValue"> <parameterID id="FunctionArgument_4"/> <composedAttribute composedTypeID="UserType_0" index="1"/> </call> </call> </call> </functionCall> <parameter name="input_vector" id="FunctionArgument_4"> <userType id="UserType_0"/> </parameter> <parameter name="input_scale" id="FunctionArgument_5"> <doubleType/> </parameter> <userType id="UserType_0"/> </userFunction> <userFunction name="translate_position_by_vector2D" id="UserFunction_4"> <functionCall> <call functionName="Block"> <call functionName="BeamTo"> <call functionName="GetSpatialInfo"> <call functionName="GetCurrentSimObject"/> </call> <call functionName="CreatePos"> <call functionName="+"> <call functionName="PosGetX"> <parameterID id="FunctionArgument_6"/> </call> <call functionName="GetComposedTypeValue"> <parameterID id="FunctionArgument_7"/> <composedAttribute composedTypeID="UserType_0" index="0"/> </call> </call> <call functionName="+"> <call functionName="PosGetY"> <parameterID id="FunctionArgument_6"/> </call> <call functionName="GetComposedTypeValue"> <parameterID id="FunctionArgument_7"/> <composedAttribute composedTypeID="UserType_0" index="1"/> </call> </call> </call> </call> <call functionName="ChangeDirectionTo"> <call functionName="GetSpatialInfo"> <call functionName="GetCurrentSimObject"/> </call> <call userFunctionID="UserFunction_6"> <parameterID id="FunctionArgument_7"/> </call> </call> </call> </functionCall> <parameter name="input_position" id="FunctionArgument_6"> <position2DType/> </parameter> <parameter name="input_vector" id="FunctionArgument_7"> <userType id="UserType_0"/> </parameter> <voidType/> </userFunction> <userFunction name="get_normed_vector2D_from_positions" id="UserFunction_5"> <functionCall> <call userFunctionID="UserFunction_1"> <call functionName="CreateComposedTypeValue"> <userType id="UserType_0"/> <call functionName="-"> <call functionName="PosGetX"> <parameterID id="FunctionArgument_9"/> </call> <call functionName="PosGetX"> <parameterID id="FunctionArgument_8"/> </call> </call> <call functionName="-"> <call functionName="PosGetY"> <parameterID id="FunctionArgument_9"/> </call> <call functionName="PosGetY"> <parameterID id="FunctionArgument_8"/>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -