diff options
author | Abdullah Sowayan <sowayan@users.noreply.github.com> | 2007-03-18 22:23:37 +0000 |
---|---|---|
committer | Abdullah Sowayan <sowayan@users.noreply.github.com> | 2007-03-18 22:23:37 +0000 |
commit | 06a34455bd98b1379cc69bbc5b2cf085e0fc0d9b (patch) | |
tree | 8815ce3b3a85c3c4285429295f338e00ea4497f4 /CIAO/examples/BasicSP/descriptors | |
parent | d66fcc9b4aaec8e88eeb83fc578fdf8a3cc963de (diff) | |
download | ATCD-06a34455bd98b1379cc69bbc5b2cf085e0fc0d9b.tar.gz |
Diffstat (limited to 'CIAO/examples/BasicSP/descriptors')
37 files changed, 1527 insertions, 0 deletions
diff --git a/CIAO/examples/BasicSP/descriptors/Airframe.ccd b/CIAO/examples/BasicSP/descriptors/Airframe.ccd new file mode 100644 index 00000000000..f8a0c2be6bf --- /dev/null +++ b/CIAO/examples/BasicSP/descriptors/Airframe.ccd @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:ComponentInterfaceDescription xmlns:Deployment="http://www.omg.org/Deployment" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + <label>Airframe Component</label> + <UUID>058178f1-430a-460c-927a-d3c98b4ec860</UUID> + <specificType>IDL:BasicSP/BMClosedED:1.0</specificType> + <supportedType>IDL:BasicSP/BMClosedED:1.0</supportedType> + <port> + <name>in_avail</name> + <exclusiveProvider>false</exclusiveProvider> + <exclusiveUser>false</exclusiveUser> + <optional>false</optional> + <provider>false</provider> + <supportedType>IDL:BasicSP/DataAvailable:1.0</supportedType> + <specificType>IDL:BasicSP/DataAvailable:1.0</specificType> + <kind>EventConsumer</kind> + </port> + + <port> + <name>out_avail</name> + <exclusiveProvider>false</exclusiveProvider> + <exclusiveUser>false</exclusiveUser> + <optional>false</optional> + <provider>true</provider> + <supportedType>IDL:BasicSP/DataAvailable:1.0</supportedType> + <specificType>IDL:BasicSP/DataAvailable:1.0</specificType> + <kind>EventPublisher</kind> + </port> + + <port> + <name>dataout</name> + <exclusiveProvider>false</exclusiveProvider> + <exclusiveUser>false</exclusiveUser> + <optional>false</optional> + <provider>true</provider> + <supportedType>IDL:BasicSP/ReadData:1.0</supportedType> + <specificType>IDL:BasicSP/ReadData:1.0</specificType> + <kind>Facet</kind> + </port> + + <port> + <name>datain</name> + <exclusiveProvider>false</exclusiveProvider> + <exclusiveUser>false</exclusiveUser> + <optional>false</optional> + <provider>true</provider> + <supportedType>IDL:BasicSP/ReadData:1.0</supportedType> + <specificType>IDL:BasicSP/ReadData:1.0</specificType> + <kind>SimplexReceptacle</kind> + </port> + +</Deployment:ComponentInterfaceDescription> diff --git a/CIAO/examples/BasicSP/descriptors/Airframe.cid b/CIAO/examples/BasicSP/descriptors/Airframe.cid new file mode 100644 index 00000000000..69d19585bee --- /dev/null +++ b/CIAO/examples/BasicSP/descriptors/Airframe.cid @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:ComponentImplementationDescription + xmlns:Deployment="http://www.omg.org/Deployment" + xmlns:xmi="http://www.omg.org/XMI" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + <label>Airframe Implementation</label> + <UUID>66a409c2-fa3a-48ea-be50-482dec4ae7a2</UUID> + <implements href="Airframe.ccd"/> + <monolithicImpl> + <primaryArtifact> + <name>BMClosedED_Stub</name> + <referencedArtifact href="Airframe_Stub.iad"/> + </primaryArtifact> + <primaryArtifact> + <name>BMClosedED_Svnt</name> + <referencedArtifact href="Airframe_Svnt.iad"/> + </primaryArtifact> + <primaryArtifact> + <name>BMClosedED_Exec</name> + <referencedArtifact href="Airframe_Exec.iad"/> + </primaryArtifact> + </monolithicImpl> + <configProperty> + <name>ComponentIOR</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>BMClosedED.ior</string> + </value> + </value> + </configProperty> +</Deployment:ComponentImplementationDescription> diff --git a/CIAO/examples/BasicSP/descriptors/Airframe.cpd b/CIAO/examples/BasicSP/descriptors/Airframe.cpd new file mode 100644 index 00000000000..2b8f461581b --- /dev/null +++ b/CIAO/examples/BasicSP/descriptors/Airframe.cpd @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:ComponentPackageDescription + xmlns:Deployment="http://www.omg.org/Deployment" + xmlns:xmi="http://www.omg.org/XMI" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + <label>Airframe Package </label> + <UUID>3c4c5adf-ae85-4b18-a404-a7c4887d6f7d</UUID> + <realizes href="Airframe.ccd"/> + <implementation> + <name>BMClosedED</name> + <referencedImplementation href="Airframe.cid"/> + </implementation> +</Deployment:ComponentPackageDescription> diff --git a/CIAO/examples/BasicSP/descriptors/Airframe_Exec.iad b/CIAO/examples/BasicSP/descriptors/Airframe_Exec.iad new file mode 100644 index 00000000000..7b70be3fd5f --- /dev/null +++ b/CIAO/examples/BasicSP/descriptors/Airframe_Exec.iad @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:ImplementationArtifactDescription + xmlns:Deployment="http://www.omg.org/Deployment" + xmlns:xmi="http://www.omg.org/XMI" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + <label>Airframe Executor Artifact</label> + <UUID>0f76b3d3-3d50-4d65-88b1-e26b60b624dd</UUID> + <location>BMClosedED_exec</location> + <dependsOn> + <name>ACE</name> + <referencedArtifact href="Libraries.iad"/> + </dependsOn> + <dependsOn> + <name>BMClosedED_Stub</name> + <referencedArtifact href="Airframe_Stub.iad"/> + </dependsOn> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>createBMClosedEDHome_Impl</string> + </value> + </value> + </execParameter> +</Deployment:ImplementationArtifactDescription> diff --git a/CIAO/examples/BasicSP/descriptors/Airframe_Stub.iad b/CIAO/examples/BasicSP/descriptors/Airframe_Stub.iad new file mode 100644 index 00000000000..b3e7013091d --- /dev/null +++ b/CIAO/examples/BasicSP/descriptors/Airframe_Stub.iad @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:ImplementationArtifactDescription + xmlns:Deployment="http://www.omg.org/Deployment" + xmlns:xmi="http://www.omg.org/XMI" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + <label>Airframe Stub Artifact</label> + <UUID>93bbdf7d-d3f7-4227-bb75-b0562ac15b92</UUID> + <location>BMClosedED_stub</location> + <dependsOn> + <name>ACE</name> + <referencedArtifact href="Libraries.iad"/> + </dependsOn> +</Deployment:ImplementationArtifactDescription> diff --git a/CIAO/examples/BasicSP/descriptors/Airframe_Svnt.iad b/CIAO/examples/BasicSP/descriptors/Airframe_Svnt.iad new file mode 100644 index 00000000000..dd086ff5f23 --- /dev/null +++ b/CIAO/examples/BasicSP/descriptors/Airframe_Svnt.iad @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:ImplementationArtifactDescription + xmlns:Deployment="http://www.omg.org/Deployment" + xmlns:xmi="http://www.omg.org/XMI" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + <label>Airframe Servant Artifact</label> + <UUID>88f66272-bdb6-488b-9d95-cfa63317c616</UUID> + <location>BMClosedED_svnt</location> + <dependsOn> + <name>ACE</name> + <referencedArtifact href="Libraries.iad"/> + </dependsOn> + <dependsOn> + <name>BMClosedED_Stub</name> + <referencedArtifact href="Airframe_Stub.iad"/> + </dependsOn> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_BasicSP_BMClosedEDHome_Servant</string> + </value> + </value> + </execParameter> +</Deployment:ImplementationArtifactDescription> diff --git a/CIAO/examples/BasicSP/descriptors/DeploymentPlan.cdp b/CIAO/examples/BasicSP/descriptors/DeploymentPlan.cdp new file mode 100644 index 00000000000..f25090018df --- /dev/null +++ b/CIAO/examples/BasicSP/descriptors/DeploymentPlan.cdp @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:DeploymentPlan + xmlns:Deployment="http://www.omg.org/Deployment" + xmlns:xmi="http://www.omg.org/XMI" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + <label>HUDisplay Deployment Plan</label> + <instance xmi:id="BMClosedED_Instance"> + <name>BMClosedED_Instance</name> + <node>AirFrameDevice</node> + </instance> + <instance xmi:id="BMDevice_Instance"> + <name>BMDevice_Instance</name> + <node>AirFrameDevice</node> + </instance> + <instance xmi:id="BMDisplay_Instance"> + <name>BMDisplay_Instance</name> + <node>AirFrameDevice</node> + </instance> + <instance xmi:id="EC_Instance"> + <name>EC_Instance</name> + <node>TimerDevice</node> + </instance> +</Deployment:DeploymentPlan> diff --git a/CIAO/examples/BasicSP/descriptors/Domain.cdd b/CIAO/examples/BasicSP/descriptors/Domain.cdd new file mode 100644 index 00000000000..6f5277d799e --- /dev/null +++ b/CIAO/examples/BasicSP/descriptors/Domain.cdd @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<Deployment:Domain + xmlns:Deployment="http://www.omg.org/Deployment" + xmlns:xmi="http://www.omg.org/XMI" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> +<label>HUDisplay Domain</label> +<UUID>effd4bd0-6db0-4c50-9bb7-db9decebae1c</UUID> +<node> + <name>EC</name> + <label>Timer's Node</label> +</node> +<node> + <name>BMDisplay</name> + <label>NavDisplay's Node</label> +</node> +<node> + <name>BMDevice</name> + <label>GPS's Node</label> +</node> +<node> + <name>BMClosedED</name> + <label>Airframe's Node</label> +</node> +</Deployment:Domain> diff --git a/CIAO/examples/BasicSP/descriptors/GPS.ccd b/CIAO/examples/BasicSP/descriptors/GPS.ccd new file mode 100644 index 00000000000..3d7d99491c8 --- /dev/null +++ b/CIAO/examples/BasicSP/descriptors/GPS.ccd @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:ComponentInterfaceDescription + xmlns:Deployment="http://www.omg.org/Deployment" + xmlns:xmi="http://www.omg.org/XMI" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + <label>GPS Component</label> + <UUID>058178f1-430a-460c-927a-d3c98b4ec860</UUID> + <specificType>IDL:BasicSP/BMDevice:1.0</specificType> + <supportedType>IDL:BasicSP/BMDevice:1.0</supportedType> + <port> + <name>timeout</name> + <exclusiveProvider>false</exclusiveProvider> + <exclusiveUser>false</exclusiveUser> + <optional>false</optional> + <provider>false</provider> + <supportedType>IDL:BasicSP/TimeOut:1.0</supportedType> + <specificType>IDL:BasicSP/TimeOut:1.0</specificType> + <kind>EventConsumer</kind> + </port> + + <port> + <name>data_available</name> + <exclusiveProvider>false</exclusiveProvider> + <exclusiveUser>false</exclusiveUser> + <optional>false</optional> + <provider>true</provider> + <supportedType>IDL:BasicSP/DataAvailable:1.0</supportedType> + <specificType>IDL:BasicSP/DataAvailable:1.0</specificType> + <kind>EventPublisher</kind> + </port> + + <port> + <name>data_read</name> + <exclusiveProvider>false</exclusiveProvider> + <exclusiveUser>false</exclusiveUser> + <optional>false</optional> + <provider>true</provider> + <supportedType>IDL:BasicSP/ReadData:1.0</supportedType> + <specificType>IDL:BasicSP/ReadData:1.0</specificType> + <kind>Facet</kind> + </port> + +</Deployment:ComponentInterfaceDescription> diff --git a/CIAO/examples/BasicSP/descriptors/GPS.cid b/CIAO/examples/BasicSP/descriptors/GPS.cid new file mode 100644 index 00000000000..ba56a63c8f5 --- /dev/null +++ b/CIAO/examples/BasicSP/descriptors/GPS.cid @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:ComponentImplementationDescription + xmlns:Deployment="http://www.omg.org/Deployment" + xmlns:xmi="http://www.omg.org/XMI" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + <label>GPS Implementation</label> + <UUID>154cf3cd-1770-4e92-b19b-8c2c921fea38</UUID> + <implements href="GPS.ccd"/> + <monolithicImpl> + <primaryArtifact> + <name>BMDevice_Stub</name> + <referencedArtifact href="GPS_Stub.iad"/> + </primaryArtifact> + <primaryArtifact> + <name>BMDevice_Svnt</name> + <referencedArtifact href="GPS_Svnt.iad"/> + </primaryArtifact> + <primaryArtifact> + <name>BMDevice_Exec</name> + <referencedArtifact href="GPS_Exec.iad"/> + </primaryArtifact> + </monolithicImpl> + <configProperty> + <name>ComponentIOR</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>BMDevice.ior</string> + </value> + </value> + </configProperty> +</Deployment:ComponentImplementationDescription> diff --git a/CIAO/examples/BasicSP/descriptors/GPS.cpd b/CIAO/examples/BasicSP/descriptors/GPS.cpd new file mode 100644 index 00000000000..3f1424967f4 --- /dev/null +++ b/CIAO/examples/BasicSP/descriptors/GPS.cpd @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:ComponentPackageDescription xmlns:Deployment="http://www.omg.org/Deployment" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + + <label>GPS System</label> + + <UUID>b55c949b-a9e8-41dd-bbb5-67d8f610dffe</UUID> + + <realizes href="GPS.ccd"/> + + <implementation> + <name>GPSImpl</name> + <referencedImplementation href="GPS.cid"/> + </implementation> + +</Deployment:ComponentPackageDescription> diff --git a/CIAO/examples/BasicSP/descriptors/GPS_Exec.iad b/CIAO/examples/BasicSP/descriptors/GPS_Exec.iad new file mode 100644 index 00000000000..c6724d39c8a --- /dev/null +++ b/CIAO/examples/BasicSP/descriptors/GPS_Exec.iad @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:ImplementationArtifactDescription + xmlns:Deployment="http://www.omg.org/Deployment" + xmlns:xmi="http://www.omg.org/XMI" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + <label>GPS Executor Artifact</label> + <UUID>9617ed9a-d127-4797-836a-0a3b3d7d8b12</UUID> + <location>BMDevice_exec</location> + <dependsOn> + <name>ACE</name> + <referencedArtifact href="Libraries.iad"/> + </dependsOn> + <dependsOn> + <name>BMDevice_Stub</name> + <referencedArtifact href="GPS_Stub.iad"/> + </dependsOn> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>createBMDeviceHome_Impl</string> + </value> + </value> + </execParameter> +</Deployment:ImplementationArtifactDescription> diff --git a/CIAO/examples/BasicSP/descriptors/GPS_Stub.iad b/CIAO/examples/BasicSP/descriptors/GPS_Stub.iad new file mode 100644 index 00000000000..6968ec7ad74 --- /dev/null +++ b/CIAO/examples/BasicSP/descriptors/GPS_Stub.iad @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:ImplementationArtifactDescription + xmlns:Deployment="http://www.omg.org/Deployment" + xmlns:xmi="http://www.omg.org/XMI" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + <label>GPS Stub Artifact</label> + <UUID>c7264c15-d373-4d01-84ee-d37536599240</UUID> + <location>BMDevice_stub</location> + <dependsOn> + <name>ACE</name> + <referencedArtifact href="Libraries.iad"/> + </dependsOn> +</Deployment:ImplementationArtifactDescription> diff --git a/CIAO/examples/BasicSP/descriptors/GPS_Svnt.iad b/CIAO/examples/BasicSP/descriptors/GPS_Svnt.iad new file mode 100644 index 00000000000..3f4f592cf3f --- /dev/null +++ b/CIAO/examples/BasicSP/descriptors/GPS_Svnt.iad @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:ImplementationArtifactDescription + xmlns:Deployment="http://www.omg.org/Deployment" + xmlns:xmi="http://www.omg.org/XMI" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + <label>GPS Servant Artifact</label> + <UUID>657440e8-9143-494b-928c-2a3df84e509f</UUID> + <location>BMDevice_svnt</location> + <dependsOn> + <name>ACE</name> + <referencedArtifact href="Libraries.iad"/> + </dependsOn> + <dependsOn> + <name>BMDevice_Stub</name> + <referencedArtifact href="GPS_Stub.iad"/> + </dependsOn> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_BasicSP_BMDeviceHome_Servant</string> + </value> + </value> + </execParameter> +</Deployment:ImplementationArtifactDescription> diff --git a/CIAO/examples/BasicSP/descriptors/HUDisplay.cid b/CIAO/examples/BasicSP/descriptors/HUDisplay.cid new file mode 100644 index 00000000000..3746e7cae24 --- /dev/null +++ b/CIAO/examples/BasicSP/descriptors/HUDisplay.cid @@ -0,0 +1,82 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:ComponentImplementationDescription + xmlns:Deployment="http://www.omg.org/Deployment" + xmlns:xmi="http://www.omg.org/XMI" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + <label>HUDisplay Assembly</label> + <UUID>effd4bd0-6db0-4c50-9bb7-db9decebae1c</UUID> + <assemblyImpl> + <instance xmi:id="a_GPS"> + <name>BMDevice_Instance</name> + <package href="GPS.cpd"/> + </instance> + <instance xmi:id="a_Airframe"> + <name>BMClosedED_Instance</name> + <package href="Airframe.cpd"/> + </instance> + <instance xmi:id="a_NavDisplay"> + <name>BMDisplay_Instance</name> + <package href="NavDisplay.cpd"/> + </instance> + <instance xmi:id="a_Timer"> + <name>EC_Instance</name> + <package href="Timer.cpd"/> + </instance> + <connection> + <name>Timer_NavDisplay</name> + <internalEndpoint> + <portName>timeout</portName> + <instance xmi:idref="a_Timer"/> + </internalEndpoint> + <internalEndpoint> + <portName>timeout</portName> + <instance xmi:idref="a_GPS"/> + </internalEndpoint> + </connection> + <connection> + <name>GPS_Airframe</name> + <internalEndpoint> + <portName>data_available</portName> + <instance xmi:idref="a_GPS"/> + </internalEndpoint> + <internalEndpoint> + <portName>in_avail</portName> + <instance xmi:idref="a_Airframe"/> + </internalEndpoint> + </connection> + <connection> + <name>Airframe_GPS</name> + <internalEndpoint> + <portName>datain</portName> + <instance xmi:idref="a_Airframe"/> + </internalEndpoint> + <internalEndpoint> + <portName>data_read</portName> + <instance xmi:idref="a_GPS"/> + </internalEndpoint> + </connection> + <connection> + <name>Airframe_NavDisplay</name> + <internalEndpoint> + <portName>data_ready</portName> + <instance xmi:idref="a_NavDisplay"/> + </internalEndpoint> + <internalEndpoint> + <portName>out_avail</portName> + <instance xmi:idref="a_Airframe"/> + </internalEndpoint> + </connection> + <connection> + <name>NavDisplay_Airframe</name> + <internalEndpoint> + <portName>comp_data</portName> + <instance xmi:idref="a_NavDisplay"/> + </internalEndpoint> + <internalEndpoint> + <portName>dataout</portName> + <instance xmi:idref="a_Airframe"/> + </internalEndpoint> + </connection> + </assemblyImpl> +</Deployment:ComponentImplementationDescription> diff --git a/CIAO/examples/BasicSP/descriptors/HUDisplay.cpd b/CIAO/examples/BasicSP/descriptors/HUDisplay.cpd new file mode 100644 index 00000000000..9be7a1e0ef2 --- /dev/null +++ b/CIAO/examples/BasicSP/descriptors/HUDisplay.cpd @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:ComponentPackageDescription + xmlns:Deployment="http://www.omg.org/Deployment" + xmlns:xmi="http://www.omg.org/XMI" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + <label>HUDisplay Package</label> + <UUID>823e4287-f53c-4caa-8619-f3dfda4c4998</UUID> + <implementation> + <name>HUDisplay</name> + <referencedImplementation href="HUDisplay.cid"/> + </implementation> +</Deployment:ComponentPackageDescription> diff --git a/CIAO/examples/BasicSP/descriptors/HUDisplay.pcd b/CIAO/examples/BasicSP/descriptors/HUDisplay.pcd new file mode 100644 index 00000000000..cbcec4e9113 --- /dev/null +++ b/CIAO/examples/BasicSP/descriptors/HUDisplay.pcd @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:PackageConfiguration +xmlns:Deployment="http://www.omg.org/Deployment" +xmlns:xmi="http://www.omg.org/XMI" +xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" +xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + <label>HUDisplay Configuration for Unix machines</label> + <UUID>559d65e8-0407-48c0-a158-dafe21360fef</UUID> + <basePackage href="HUDisplay.cpd"/> +</Deployment:PackageConfiguration> diff --git a/CIAO/examples/BasicSP/descriptors/Libraries.iad b/CIAO/examples/BasicSP/descriptors/Libraries.iad new file mode 100644 index 00000000000..720a7ce8219 --- /dev/null +++ b/CIAO/examples/BasicSP/descriptors/Libraries.iad @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:ImplementationArtifactDescription xmlns:Deployment="http://www.omg.org/Deployment" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + <label>Common Libraries</label> + <UUID>6bae4fcd-c71c-44b4-a0d4-0e4199ce1a49</UUID> + <location>$ACE_ROOT/lib/libACE</location> + <location>$ACE_ROOT/lib/libTAO</location> + <location>$ACE_ROOT/lib/libCIAO_Client</location> +</Deployment:ImplementationArtifactDescription> diff --git a/CIAO/examples/BasicSP/descriptors/NavDisplay.ccd b/CIAO/examples/BasicSP/descriptors/NavDisplay.ccd new file mode 100644 index 00000000000..175d4067000 --- /dev/null +++ b/CIAO/examples/BasicSP/descriptors/NavDisplay.ccd @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:ComponentInterfaceDescription + xmlns:Deployment="http://www.omg.org/Deployment" + xmlns:xmi="http://www.omg.org/XMI" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + <label>NavDisplay Component </label> + <UUID>589462ed-e88f-4f96-a7a7-359cdc333d63</UUID> + <specificType>IDL:BasicSP/BMDisplay:1.0</specificType> + <supportedType>IDL:BasicSP/BMDisplay:1.0</supportedType> + <idlFile>BMDisplay.idl</idlFile> + <port> + <name>data_ready</name> + <exclusiveProvider>false</exclusiveProvider> + <exclusiveUser>false</exclusiveUser> + <optional>false</optional> + <provider>false</provider> + <supportedType>IDL:BasicSP/DataAvailable:1.0</supportedType> + <specificType>IDL:BasicSP/DataAvailable:1.0</specificType> + <kind>EventConsumer</kind> + </port> + + <port> + <name>comp_data</name> + <exclusiveProvider>false</exclusiveProvider> + <exclusiveUser>false</exclusiveUser> + <optional>false</optional> + <provider>false</provider> + <supportedType>IDL:BasicSP/ReadData:1.0</supportedType> + <specificType>IDL:BasicSP/ReadData:1.0</specificType> + <kind>SimplexReceptacle</kind> + </port> + +</Deployment:ComponentInterfaceDescription> diff --git a/CIAO/examples/BasicSP/descriptors/NavDisplay.cid b/CIAO/examples/BasicSP/descriptors/NavDisplay.cid new file mode 100644 index 00000000000..30b66fea0b2 --- /dev/null +++ b/CIAO/examples/BasicSP/descriptors/NavDisplay.cid @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:ComponentImplementationDescription + xmlns:Deployment="http://www.omg.org/Deployment" + xmlns:xmi="http://www.omg.org/XMI" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + <label>NavDisplay Implementation</label> + <UUID>0a52c9de-7852-42e4-aac7-bf478169a21a</UUID> + <implements href="NavDisplay.ccd"/> + <monolithicImpl> + <primaryArtifact> + <name>BMDisplay_Stub</name> + <referencedArtifact href="NavDisplay_Stub.iad"/> + </primaryArtifact> + <primaryArtifact> + <name>BMDisplay_Svnt</name> + <referencedArtifact href="NavDisplay_Svnt.iad"/> + </primaryArtifact> + <primaryArtifact> + <name>BMDisplay_Exec</name> + <referencedArtifact href="NavDisplay_Exec.iad"/> + </primaryArtifact> + </monolithicImpl> + <configProperty> + <name>ComponentIOR</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>BMDisplay.ior</string> + </value> + </value> + </configProperty> +</Deployment:ComponentImplementationDescription> diff --git a/CIAO/examples/BasicSP/descriptors/NavDisplay.cpd b/CIAO/examples/BasicSP/descriptors/NavDisplay.cpd new file mode 100644 index 00000000000..04862555769 --- /dev/null +++ b/CIAO/examples/BasicSP/descriptors/NavDisplay.cpd @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:ComponentPackageDescription + xmlns:Deployment="http://www.omg.org/Deployment" + xmlns:xmi="http://www.omg.org/XMI" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + <label>Navigation Display Package</label> + <UUID>a5923ef4-9c62-4458-9fa4-869b53d834ca</UUID> + <realizes href="NavDisplay.ccd"/> + <implementation> + <name>BMDisplay</name> + <referencedImplementation href="NavDisplay.cid"/> + </implementation> +</Deployment:ComponentPackageDescription> diff --git a/CIAO/examples/BasicSP/descriptors/NavDisplay_Exec.iad b/CIAO/examples/BasicSP/descriptors/NavDisplay_Exec.iad new file mode 100644 index 00000000000..fbd092506a8 --- /dev/null +++ b/CIAO/examples/BasicSP/descriptors/NavDisplay_Exec.iad @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:ImplementationArtifactDescription + xmlns:Deployment="http://www.omg.org/Deployment" + xmlns:xmi="http://www.omg.org/XMI" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + <label>NavDisplay Servant Artifact</label> + <UUID>412f8156-7913-4651-9110-f7a3f98c7a83</UUID> + <location>BMDisplay_exec</location> + <dependsOn> + <name>ACE</name> + <referencedArtifact href="Libraries.iad"/> + </dependsOn> + <dependsOn> + <name>BMDisplay_Stub</name> + <referencedArtifact href="NavDisplay_Stub.iad"/> + </dependsOn> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>createBMDisplayHome_Impl</string> + </value> + </value> + </execParameter> +</Deployment:ImplementationArtifactDescription> diff --git a/CIAO/examples/BasicSP/descriptors/NavDisplay_Stub.iad b/CIAO/examples/BasicSP/descriptors/NavDisplay_Stub.iad new file mode 100644 index 00000000000..e79eeea1f4e --- /dev/null +++ b/CIAO/examples/BasicSP/descriptors/NavDisplay_Stub.iad @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:ImplementationArtifactDescription + xmlns:Deployment="http://www.omg.org/Deployment" + xmlns:xmi="http://www.omg.org/XMI" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + <label>NavDisplay Stub Artifact</label> + <UUID>4d02c22b-768e-4d1a-bf07-76da2f5d1fbf</UUID> + <location>BMDisplay_Stub</location> + <dependsOn> + <name>ACE</name> + <referencedArtifact href="Libraries.iad"/> + </dependsOn> +</Deployment:ImplementationArtifactDescription> diff --git a/CIAO/examples/BasicSP/descriptors/NavDisplay_Svnt.iad b/CIAO/examples/BasicSP/descriptors/NavDisplay_Svnt.iad new file mode 100644 index 00000000000..c6b0e7a34ea --- /dev/null +++ b/CIAO/examples/BasicSP/descriptors/NavDisplay_Svnt.iad @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:ImplementationArtifactDescription + xmlns:Deployment="http://www.omg.org/Deployment" + xmlns:xmi="http://www.omg.org/XMI" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + <label>NavDisplay Servant Artifact</label> + <UUID>ad052b10-0806-43c7-9ccc-2dfeda0e0e03</UUID> + <location>BMDisplay_svnt</location> + <dependsOn> + <name>ACE</name> + <referencedArtifact href="Libraries.iad"/> + </dependsOn> + <dependsOn> + <name>BMDisplay_Stub</name> + <referencedArtifact href="NavDisplay_Stub.iad"/> + </dependsOn> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_BasicSP_BMDisplayHome_Servant</string> + </value> + </value> + </execParameter> +</Deployment:ImplementationArtifactDescription> diff --git a/CIAO/examples/BasicSP/descriptors/NodeManagerMap.dat b/CIAO/examples/BasicSP/descriptors/NodeManagerMap.dat new file mode 100644 index 00000000000..6f4bbd25734 --- /dev/null +++ b/CIAO/examples/BasicSP/descriptors/NodeManagerMap.dat @@ -0,0 +1,2 @@ +AirFrameDevice corbaloc:iiop:localhost:10000/NodeManager +TimerDevice corbaloc:iiop:localhost:20000/NodeManager
\ No newline at end of file diff --git a/CIAO/examples/BasicSP/descriptors/Timer.ccd b/CIAO/examples/BasicSP/descriptors/Timer.ccd new file mode 100644 index 00000000000..ba44bcf1a00 --- /dev/null +++ b/CIAO/examples/BasicSP/descriptors/Timer.ccd @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:ComponentInterfaceDescription + xmlns:Deployment="http://www.omg.org/Deployment" + xmlns:xmi="http://www.omg.org/XMI" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + + <label>Timer Component</label> + <UUID>803f8fc7-55de-4a20-81eb-ae951d85b7f4</UUID> + <specificType>IDL:BasicSP/EC:1.0</specificType> + <supportedType>IDL:BasicSP/EC:1.0</supportedType> + <property> + <name>hertz</name> + <type> + <kind>tk_long</kind> + </type> + </property> + <port> + <name>supports</name> + <exclusiveProvider>false</exclusiveProvider> + <exclusiveUser>false</exclusiveUser> + <optional>false</optional> + <provider>true</provider> + <supportedType>IDL:BasicSP/trigger:1.0</supportedType> + <kind>Facet</kind> + </port> + <port> + <name>timeout</name> + <exclusiveProvider>false</exclusiveProvider> + <exclusiveUser>false</exclusiveUser> + <optional>false</optional> + <provider>true</provider> + <supportedType>IDL:BasicSP/TimeOut:1.0</supportedType> + <specificType>IDL:BasicSP/TimeOut:1.0</specificType> + <kind>EventPublisher</kind> + </port> + +</Deployment:ComponentInterfaceDescription> diff --git a/CIAO/examples/BasicSP/descriptors/Timer.cid b/CIAO/examples/BasicSP/descriptors/Timer.cid new file mode 100644 index 00000000000..ac50742d0e3 --- /dev/null +++ b/CIAO/examples/BasicSP/descriptors/Timer.cid @@ -0,0 +1,46 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:ComponentImplementationDescription + xmlns:Deployment="http://www.omg.org/Deployment" + xmlns:xmi="http://www.omg.org/XMI" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + <label>Timer Implementation</label> + <UUID>789e1be2-703f-4bd3-af50-b400eef91fd0</UUID> + <implements href="Timer.ccd"/> + <monolithicImpl> + <primaryArtifact> + <name>EC_Stub</name> + <referencedArtifact href="Timer_Stub.iad"/> + </primaryArtifact> + <primaryArtifact> + <name>EC_Svnt</name> + <referencedArtifact href="Timer_Svnt.iad"/> + </primaryArtifact> + <primaryArtifact> + <name>EC_Exec</name> + <referencedArtifact href="Timer_Exec.iad"/> + </primaryArtifact> + </monolithicImpl> + <configProperty> + <name>hertz</name> + <value> + <type> + <kind>tk_long</kind> + </type> + <value> + <long>40</long> + </value> + </value> + </configProperty> + <configProperty> + <name>ComponentIOR</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>EC.ior</string> + </value> + </value> + </configProperty> +</Deployment:ComponentImplementationDescription> diff --git a/CIAO/examples/BasicSP/descriptors/Timer.cpd b/CIAO/examples/BasicSP/descriptors/Timer.cpd new file mode 100644 index 00000000000..167b1238934 --- /dev/null +++ b/CIAO/examples/BasicSP/descriptors/Timer.cpd @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:ComponentPackageDescription + xmlns:Deployment="http://www.omg.org/Deployment" + xmlns:xmi="http://www.omg.org/XMI" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + <label>Timer Package</label> + <UUID>07ebf947-2174-4a3b-bd37-bcb92986eaf4</UUID> + <realizes href="Timer.ccd"/> + <implementation> + <name>EC</name> + <referencedImplementation href="Timer.cid"/> + </implementation> +</Deployment:ComponentPackageDescription> diff --git a/CIAO/examples/BasicSP/descriptors/Timer_Exec.iad b/CIAO/examples/BasicSP/descriptors/Timer_Exec.iad new file mode 100644 index 00000000000..222fc22bc9e --- /dev/null +++ b/CIAO/examples/BasicSP/descriptors/Timer_Exec.iad @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:ImplementationArtifactDescription + xmlns:Deployment="http://www.omg.org/Deployment" + xmlns:xmi="http://www.omg.org/XMI" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + <label>Timer Executor Artifact</label> + <UUID>5e4f2366-3810-4d4c-a269-5788a525cbe1</UUID> + <location>EC_exec</location> + <dependsOn> + <name>ACE</name> + <referencedArtifact href="Libraries.iad"/> + </dependsOn> + <dependsOn> + <name>EC_Stub</name> + <referencedArtifact href="Timer_Stub.iad"/> + </dependsOn> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>createECHome_Impl</string> + </value> + </value> + </execParameter> +</Deployment:ImplementationArtifactDescription> diff --git a/CIAO/examples/BasicSP/descriptors/Timer_Stub.iad b/CIAO/examples/BasicSP/descriptors/Timer_Stub.iad new file mode 100644 index 00000000000..c9d15dcc82e --- /dev/null +++ b/CIAO/examples/BasicSP/descriptors/Timer_Stub.iad @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:ImplementationArtifactDescription + xmlns:Deployment="http://www.omg.org/Deployment" + xmlns:xmi="http://www.omg.org/XMI" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + <label>Timer Stub Artifact</label> + <UUID>93bbdf7d-d3f7-4227-bb75-b0562ac15b92</UUID> + <location>EC_stub</location> + <dependsOn> + <name>ACE</name> + <referencedArtifact href="Libraries.iad"/> + </dependsOn> +</Deployment:ImplementationArtifactDescription> diff --git a/CIAO/examples/BasicSP/descriptors/Timer_Svnt.iad b/CIAO/examples/BasicSP/descriptors/Timer_Svnt.iad new file mode 100644 index 00000000000..0082291e27f --- /dev/null +++ b/CIAO/examples/BasicSP/descriptors/Timer_Svnt.iad @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:ImplementationArtifactDescription + xmlns:Deployment="http://www.omg.org/Deployment" + xmlns:xmi="http://www.omg.org/XMI" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + <label>Timer Servant Artifact</label> + <UUID>04e4d246-e6eb-4b0e-8e32-60b996497cea</UUID> + <location>EC_svnt</location> + <dependsOn> + <name>ACE</name> + <referencedArtifact href="Libraries.iad"/> + </dependsOn> + <dependsOn> + <name>EC_Stub</name> + <referencedArtifact href="Timer_Stub.iad"/> + </dependsOn> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_BasicSP_ECHome_Servant</string> + </value> + </value> + </execParameter> +</Deployment:ImplementationArtifactDescription> diff --git a/CIAO/examples/BasicSP/descriptors/XMI.xsd b/CIAO/examples/BasicSP/descriptors/XMI.xsd new file mode 100644 index 00000000000..f4adac91934 --- /dev/null +++ b/CIAO/examples/BasicSP/descriptors/XMI.xsd @@ -0,0 +1,35 @@ +<?xml version="1.0" ?> +<xsd:schema targetNamespace="http://www.omg.org/XMI" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation='http://www.w3.org/2001/XMLSchema XMLSchema.xsd'> + <xsd:attribute name="id" type="xsd:ID" /> + <xsd:attributeGroup name="IdentityAttribs"> + <xsd:attribute form="qualified" name="label" type="xsd:string" use="optional" /> + <xsd:attribute form="qualified" name="uuid" type="xsd:string" use="optional" /> + </xsd:attributeGroup> + <xsd:attributeGroup name="LinkAttribs"> + <xsd:attribute name="href" type="xsd:string" use="optional" /> + <xsd:attribute form="qualified" name="idref" type="xsd:IDREF" use="optional" /> + </xsd:attributeGroup> + <xsd:attributeGroup name="ObjectAttribs"> + <xsd:attributeGroup ref="xmi:IdentityAttribs" /> + <xsd:attributeGroup ref="xmi:LinkAttribs" /> + <xsd:attribute fixed="2.0" form="qualified" name="version" type="xsd:string" use="optional" /> + <xsd:attribute form="qualified" name="type" type="xsd:QName" use="optional" /> + </xsd:attributeGroup> + <xsd:complexType name="Extension"> + <xsd:choice maxOccurs="unbounded" minOccurs="0"> + <xsd:any processContents="lax" /> + </xsd:choice> + <xsd:attribute ref="xmi:id" /> + <xsd:attributeGroup ref="xmi:ObjectAttribs" /> + <xsd:attribute name="extender" type="xsd:string" use="optional" /> + <xsd:attribute name="extenderID" type="xsd:string" use="optional" /> + </xsd:complexType> + <xsd:element name="Extension" type="xmi:Extension" /> + <xsd:complexType name="Any"> + <xsd:choice maxOccurs="unbounded" minOccurs="0"> + <xsd:any processContents="skip" /> + </xsd:choice> + <xsd:anyAttribute processContents="skip" /> + </xsd:complexType> +</xsd:schema> diff --git a/CIAO/examples/BasicSP/descriptors/basicNodeDaemon.pl b/CIAO/examples/BasicSP/descriptors/basicNodeDaemon.pl new file mode 100755 index 00000000000..7fe5eac49fc --- /dev/null +++ b/CIAO/examples/BasicSP/descriptors/basicNodeDaemon.pl @@ -0,0 +1,57 @@ +eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' + & eval 'exec perl -S $0 $argv:q' + if 0; + +# $Id$ +# -*- perl -*- + +use lib "$ENV{'ACE_ROOT'}/bin"; +use PerlACE::Run_Test; + +$status = 0; +$iorfile1 = PerlACE::LocalFile ("NodeApp1.ior"); +$iorfile2 = PerlACE::LocalFile ("NodeApp2.ior"); +$iorfile3 = PerlACE::LocalFile ("NodeApp3.ior"); +$iorfile4 = PerlACE::LocalFile ("NodeApp4.ior"); +$iorfile5 = PerlACE::LocalFile ("NodeApp5.ior"); + +#for ($iter = 0; $iter <= $#ARGV; $iter++) { +# if ($ARGV[$iter] eq "-h" || $ARGV[$iter] eq "-?") { +# print "Run_Test Perl script for NodeApplicationTest \n\n"; +# print "run_test \n"; +# print "\n"; +# print "-h -- prints this information\n"; +# exit 0; +# } +#} + + +unlink $iorfile1; +unlink $iorfile2; +unlink $iorfile3; +unlink $iorfile4; +unlink $iorfile5; + +$CIAO_ROOT=$ENV{'CIAO_ROOT'}; + +$SV1 = new PerlACE::Process ("$CIAO_ROOT/bin/NodeManager", + "-ORBEndpoint iiop://localhost:10000 -s $CIAO_ROOT/DAnCE/NodeApplication/NodeApplication"); + +$SV2 = new PerlACE::Process ("$CIAO_ROOT/bin/NodeManager", + "-ORBEndpoint iiop://localhost:20000 -s $CIAO_ROOT/DAnCE/NodeApplication/NodeApplication"); + +$SV3 = new PerlACE::Process ("$CIAO_ROOT/bin/NodeManager", + "-ORBEndpoint iiop://localhost:30000 -s $CIAO_ROOT/DAnCE/NodeApplication/NodeApplication"); + +$SV4 = new PerlACE::Process ("$CIAO_ROOT/bin/NodeManager", + "-ORBEndpoint iiop://localhost:40000 -s $CIAO_ROOT/DAnCE/NodeApplication/NodeApplication"); + +$SV5 = new PerlACE::Process ("$CIAO_ROOT/bin/NodeManager", + "-ORBEndpoint iiop://localhost:50000 -s $CIAO_ROOT/DAnCE/NodeApplication/NodeApplication"); +$SV1->Spawn (); +$SV2->Spawn (); +$SV3->Spawn (); +$SV4->Spawn (); +$SV5->Spawn (); + +sleep (99999999999); diff --git a/CIAO/examples/BasicSP/descriptors/basicsp.dat b/CIAO/examples/BasicSP/descriptors/basicsp.dat new file mode 100644 index 00000000000..8bd5e6a72f6 --- /dev/null +++ b/CIAO/examples/BasicSP/descriptors/basicsp.dat @@ -0,0 +1,3 @@ +BMClosedED corbaloc:iiop:localhost:10000/NodeManager +EC corbaloc:iiop:localhost:20000/NodeManager + diff --git a/CIAO/examples/BasicSP/descriptors/flattened_deploymentplan.cdp b/CIAO/examples/BasicSP/descriptors/flattened_deploymentplan.cdp new file mode 100644 index 00000000000..d3aa1197327 --- /dev/null +++ b/CIAO/examples/BasicSP/descriptors/flattened_deploymentplan.cdp @@ -0,0 +1,422 @@ +<Deployment:deploymentPlan + xmlns:Deployment="http://www.omg.org/Deployment" + xmlns:xmi="http://www.omg.org/XMI" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.omg.org/Deployment Modified_Deployment.xsd"> + + <label>BasicSP-DeploymentPlan</label> + <UUID>Test_UUID_0000</UUID> + <!-- Exactly one realizes + This realizes section may also not be right. --> + <realizes> + <label>BasicSP-realizes-cid</label> + <UUID>c0965470-7b83-11d9-9669-0800200c9a66</UUID> + <specificType><!-- @@ What does here? --></specificType> + <supportedType>IDL:BasicSP/EC:1.0</supportedType> + <port> + <name>timeout</name> + <specificType>IDL:BasicSP/TimeOut:1.0</specificType> + <supportedType>IDL:BasicSP/TimeOut:1.0</supportedType> + <provider>false></provider> + <exclusiveProvider>false</exclusiveProvider> + <exclusiveUser>false</exclusiveUser> + <optional>false</optional> + <kind>EventConsumer</kind> + </port> + </realizes> + + <implementation id="BasicSP-BMClosedED-mdd"> + <name>BasicSP-BMClosedED-mdd</name> + <source><!-- @@ Don't know what goes here --></source> + <artifact>BasicSP-BMClosedED_exec</artifact> + <artifact>BasicSP-BMClosedED_stub</artifact> + <artifact>BasicSP-BMClosedED_svnt</artifact> + <!-- + <execParameter></execParameter> + <deployRequirement></deployRequirement> + --> + </implementation> + + <implementation id="BasicSP-BMDevice-mdd"> + <name>BasicSP-BMDevice-mdd</name> + <source><!-- @@ Don't know what goes here --></source> + + <artifact>BasicSP-BMDevice_exec</artifact> + <artifact>BasicSP-BMDevice_stub</artifact> + <artifact>BasicSP-BMDevice_svnt</artifact> + <!-- + <execParameter></execParameter> + <deployRequirement></deployRequirement> + --> + </implementation> + + <implementation id="BasicSP-BMDisplay-mdd"> + <name>BasicSP-BMDisplay-mdd</name> + <source><!-- @@ Don't know what goes here --></source> + <artifact>BasicSP-BMDisplay_exec</artifact> + <artifact>BasicSP-BMDisplay_svnt</artifact> + <artifact>BasicSP-BMDisplay_stub</artifact> + + <!-- + <execParameter></execParameter> + <deployRequirement></deployRequirement> + --> + </implementation> + + <implementation id="BasicSP-EC-mdd"> + <name>BasicSP-EC-mdd</name> + <source><!-- @@ Don't know what goes here --></source> + + <artifact>BasicSP-EC_stub</artifact> + <artifact>BasicSP-EC_svnt</artifact> + <artifact>BasicSP-EC_exec</artifact> + + <!-- + <execParameter></execParameter> + <deployRequirement></deployRequirement> + --> + </implementation> + + <instance id="BasicSP-BMClosedED-idd"> + <name>BasicSP-BMClosedED-idd</name> + <node>AirFrameDevice</node> + <source><!-- @@ What goes here --></source> + <implementation>BasicSP-BMClosedED-mdd</implementation> + <configProperty> + <name>ComponentIOR</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>BMClosedED.ior</string> + </value> + </value> + </configProperty> + + <configProperty> + <name>RegisterNaming</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>AirFrameDevice_001</string> + </value> + </value> + </configProperty> + </instance> + + <instance id="BasicSP-BMDevice-idd"> + <name>BasicSP-BMDevice-idd</name> + <node>AirFrameDevice</node> + <source><!-- @@ What goes here --></source> + <implementation>BasicSP-BMDevice-mdd</implementation> + <configProperty> + <name>ComponentIOR</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>BMDevice.ior</string> + </value> + </value> + </configProperty> + </instance> + + <instance id="BasicSP-BMDisplay-idd"> + <name>BasicSP-BMDisplay-idd</name> + <node>AirFrameDevice</node> + <source><!-- @@ What goes here --></source> + <implementation>BasicSP-BMDisplay-mdd</implementation> + <configProperty> + <name>ComponentIOR</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>BMDisplay.ior</string> + </value> + </value> + </configProperty> + </instance> + + <instance id="BasicSP-EC-idd"> + <name>BasicSP-EC-idd</name> + <node>TimerDevice</node> + <source><!-- @@ What goes here --></source> + <implementation>BasicSP-EC-mdd</implementation> + <configProperty> + <name>ComponentIOR</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>EC.ior</string> + </value> + </value> + </configProperty> + </instance> + + <connection> + <name>datain_data_read</name> + <internalEndpoint> + <portName>data_read</portName> + <kind>Facet</kind> + <instance>BasicSP-BMDevice-idd</instance> + </internalEndpoint> + <internalEndpoint> + <portName>datain</portName> + <kind>SimplexReceptacle</kind> + <instance>BasicSP-BMClosedED-idd</instance> + </internalEndpoint> + </connection> + + <connection> + <name>comp_data_dataout</name> + <internalEndpoint> + <portName>dataout</portName> + <kind>Facet</kind> + <instance>BasicSP-BMClosedED-idd</instance> + </internalEndpoint> + <internalEndpoint> + <portName>comp_data</portName> + <kind>SimplexReceptacle</kind> + <instance>BasicSP-BMDisplay-idd</instance> + </internalEndpoint> + </connection> + + <connection> + <name>timeout_timeout</name> + <internalEndpoint> + <portName>timeout</portName> + <kind>EventPublisher</kind> + <instance>BasicSP-EC-idd</instance> + </internalEndpoint> + <internalEndpoint> + <portName>timeout</portName> + <kind>EventConsumer</kind> + <instance>BasicSP-BMDevice-idd</instance> + </internalEndpoint> + </connection> + + <connection> + <name>in_avail_data_available</name> + <internalEndpoint> + <portName>data_available</portName> + <kind>EventPublisher</kind> + <instance>BasicSP-BMDevice-idd</instance> + </internalEndpoint> + <internalEndpoint> + <portName>in_avail</portName> + <kind>EventConsumer</kind> + <instance>BasicSP-BMClosedED-idd</instance> + </internalEndpoint> + </connection> + + <connection> + <name>data_ready_out_avail</name> + <internalEndpoint> + <portName>out_avail</portName> + <kind>EventPublisher</kind> + <instance>BasicSP-BMClosedED-idd</instance> + </internalEndpoint> + <internalEndpoint> + <portName>data_ready</portName> + <kind>EventConsumer</kind> + <instance>BasicSP-BMDisplay-idd</instance> + </internalEndpoint> + </connection> + + <artifact id="BasicSP-BMClosedED_exec"> + <name>BMClosedED_exec</name> + <source><!-- @@ Not sure about this--></source> + <node><!-- blank --></node> + <location>BMClosedED_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>createBMClosedEDHome_Impl</string> + </value> + </value> + </execParameter> + + <!-- @@ This has dependancies that need to be specified, how? --> + </artifact> + + <artifact id="BasicSP-BMClosedED_svnt"> + <name>BMClosedED_svnt</name> + <source><!-- @@ Not sure --></source> + <node><!-- blank --></node> + <location>BMClosedED_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_BasicSP_BMClosedEDHome_Servant</string> + </value> + </value> + </execParameter> + <!-- @@ This has dependancies that need to be specified, how? --> + </artifact> + + <artifact id="BasicSP-BMClosedED_stub"> + <name>BMClosedED_stub</name> + <source><!-- @@ Not sure --></source> + <node><!-- blank --></node> + <location>BMClosedED_stub</location> + + <!-- @@ This has dependancies that need to be specified, how? --> + </artifact> + + <artifact id="BasicSP-BMDevice_exec"> + <name>BMDevice_exec</name> + <source><!-- @@ Not sure --></source> + <node><!-- blank --></node> + <location>BMDevice_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>createBMDeviceHome_Impl</string> + </value> + </value> + </execParameter> + <!-- @@ This has dependancies that need to be specified, how? --> + </artifact> + + <artifact id="BasicSP-BMDevice_stub"> + <name>BMDevice_stub</name> + <source><!-- @@ Not sure --></source> + <node><!-- blank --></node> + <location>BMDevice_stub</location> + <!-- @@ This has dependancies that need to be specified, how? --> + </artifact> + + <artifact id="BasicSP-BMDevice_svnt"> + <name>BMDevice_svnt</name> + <source><!-- @@ Not sure --></source> + <node><!-- blank --></node> + <location>BMDevice_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_BasicSP_BMDeviceHome_Servant</string> + </value> + </value> + </execParameter> + <!-- @@ This has dependancies that need to be specified, how? --> + </artifact> + + <artifact id="BasicSP-BMDisplay_exec"> + <name>BMDisplay_exec</name> + <source><!-- @@ Not sure --></source> + <node><!-- blank --></node> + <location>BMDisplay_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>createBMDisplayHome_Impl</string> + </value> + </value> + </execParameter> + <!-- @@ This has dependancies that need to be specified, how? --> + </artifact> + + <artifact id="BasicSP-BMDisplay_svnt"> + <name>BMDisplay_svnt</name> + <source><!-- @@ Not sure --></source> + <node><!-- blank --></node> + <location>BMDisplay_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_BasicSP_BMDisplayHome_Servant</string> + </value> + </value> + </execParameter> + <!-- @@ This has dependancies that need to be specified, how? --> + </artifact> + + <artifact id="BasicSP-BMDisplay_stub"> + <name>BMDisplay_stub</name> + <source><!-- @@ Not sure --></source> + <node><!-- blank --></node> + <location>BMDisplay_stub</location> + + <!-- @@ This has dependancies that need to be specified, how? --> + </artifact> + + <artifact id="BasicSP-EC_stub"> + <name>EC_stub</name> + <source><!-- @@ Not sure --></source> + <node><!-- blank --></node> + <location>EC_stub</location> + + <!-- @@ This has dependancies that need to be specified, how? --> + </artifact> + + <artifact id="BasicSP-EC_svnt"> + <name>EC_svnt</name> + <source><!-- @@ Not sure --></source> + <node><!-- blank --></node> + <location>EC_svnt</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>create_BasicSP_ECHome_Servant</string> + </value> + </value> + </execParameter> + <!-- @@ This has dependancies that need to be specified, how? --> + </artifact> + + <artifact id="BasicSP-EC_exec"> + <name>EC_exec</name> + <source><!-- @@ Not sure --></source> + <node><!-- blank --></node> + <location>EC_exec</location> + <execParameter> + <name>entryPoint</name> + <value> + <type> + <kind>tk_string</kind> + </type> + <value> + <string>createECHome_Impl</string> + </value> + </value> + </execParameter> + + <!-- @@ This has dependancies that need to be specified, how? --> + </artifact> +</Deployment:deploymentPlan> diff --git a/CIAO/examples/BasicSP/descriptors/package.tpd b/CIAO/examples/BasicSP/descriptors/package.tpd new file mode 100644 index 00000000000..9096beb2c48 --- /dev/null +++ b/CIAO/examples/BasicSP/descriptors/package.tpd @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<Deployment:TopLevelPackageDescription +xmlns:Deployment="http://www.omg.org/Deployment" +xmlns:xmi="http://www.omg.org/XMI" +xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" +xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd"> + <package href="HUDisplay.pcd"/> +</Deployment:TopLevelPackageDescription> diff --git a/CIAO/examples/BasicSP/descriptors/run_test.pl b/CIAO/examples/BasicSP/descriptors/run_test.pl new file mode 100755 index 00000000000..5687e040723 --- /dev/null +++ b/CIAO/examples/BasicSP/descriptors/run_test.pl @@ -0,0 +1,175 @@ +eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' + & eval 'exec perl -S $0 $argv:q' + if 0; + +# $Id$ +# -*- perl -*- + +use lib "$ENV{'ACE_ROOT'}/bin"; +use PerlACE::Run_Test; + +$CIAO_ROOT = "$ENV{'CIAO_ROOT'}"; +$TAO_ROOT = "$ENV{'TAO_ROOT'}"; +$DAnCE = "$ENV{'CIAO_ROOT'}/DAnCE"; +$daemons_running = 0; +$em_running = 0; +$ns_running = 0; +$daemons = 5; +@ports = ( 10000, 20000, 30000, 40000, 50000 ); +@iorfiles = ( "NodeApp1.ior", "NodeApp2.ior", "NodeApp3.ior", "NodeApp4.ior", "NodeApp5.ior" ); +$status = 0; +$dat_file = "NodeManagerMap.dat"; +$cdp_file = "flattern_deploymentplan.cdp"; +$controller_exec = "$CIAO_ROOT/examples/BasicSP/EC/controller"; + +$nsior = PerlACE::LocalFile ("ns.ior"); + +unlink $nsior; + +$E = 0; +$EM = 0; + +# Delete if there are any .ior files. +sub delete_ior_files { + for ($i = 0; $i < $daemons; ++$i) { + unlink $iorfiles[$i]; + } + unlink PerlACE::LocalFile ("EM.ior"); + unlink PerlACE::LocalFile ("Receiver.ior"); + unlink PerlACE::LocalFile ("Sender.ior"); + unlink PerlACE::LocalFile ("DAM.ior"); + unlink PerlACE::LocalFile ("ns.ior"); +} + +sub kill_node_daemons { + for ($i = 0; $i < $daemons; ++$i) { + $Daemons[$i]->Kill (); $Daemons[$i]->TimedWait (1); + } +} + +sub kill_open_processes { + if ($daemons_running == 1) { + kill_node_daemons (); + } + + if ($em_running == 1) { + $EM->Kill (); + $EM->TimedWait (1); + } + + if ($ns_running == 1) { + $NS->Kill (); + $NS->TimedWait (1); + } + +} + +# Invoke naming service + +$NS = new PerlACE::Process ("$TAO_ROOT/orbsvcs/Naming_Service/Naming_Service", "-m 0 -ORBEndpoint iiop://localhost:60003 -o ns.ior"); + +$NS->Spawn (); + +print STDERR "Starting Naming Service\n"; + +if (PerlACE::waitforfile_timed ($nsior, 10) == -1) +{ + print STDERR "ERROR: cannot find naming service IOR file\n"; + $NS->Kill (); + exit 1; +} + +$ns_running = 1; + +# Set up NamingService environment +$ENV{"NameServiceIOR"} = "corbaloc:iiop:localhost:60003/NameService"; + + +sub run_node_daemons { + for ($i = 0; $i < $daemons; ++$i) + { + $iorfile = $iorfiles[$i]; + $port = $ports[$i]; + + $iiop = "iiop://localhost:$port"; + $node_app = "$CIAO_ROOT/bin/NodeApplication"; + + $d_cmd = "$CIAO_ROOT/bin/NodeManager"; + $d_param = "-ORBEndpoint $iiop -s $node_app -o $iorfile -d 30"; + + $Daemons[$i] = new PerlACE::Process ($d_cmd, $d_param); + $result = $Daemons[$i]->Spawn (); + push(@processes, $Daemons[$i]); + + if (PerlACE::waitforfile_timed ($iorfile, + $PerlACE::wait_interval_for_process_creation) == -1) { + print STDERR + "ERROR: The ior file of node daemon $i could not be found\n"; + for (; $i >= 0; --$i) { + $Daemons[$i]->Kill (); $Daemons[$i]->TimedWait (1); + } + return -1; + } + } + return 0; +} + +delete_ior_files (); + +# Invoke node daemons. +print "Invoking node daemons\n"; +$status = run_node_daemons (); + +if ($status != 0) { + print STDERR "ERROR: Unable to execute the node daemons\n"; + kill_open_processes (); + exit 1; +} + +$daemons_running = 1; + +# Invoke execution manager. +print "Invoking execution manager\n"; +$EM = new PerlACE::Process ("$CIAO_ROOT/bin/Execution_Manager", + "-o EM.ior -i $dat_file"); +$EM->Spawn (); + +if (PerlACE::waitforfile_timed ("EM.ior", + $PerlACE::wait_interval_for_process_creation) == -1) { + print STDERR + "ERROR: The ior file of execution manager could not be found\n"; + kill_open_processes (); + exit 1; +} + +$em_running = 1; + +sleep (10); + +# Invoke executor - start the application -. +print "Invoking executor - start the application -\n"; +$E = + new PerlACE::Process ("$CIAO_ROOT/bin/plan_launcher", + "-p flattened_deploymentplan.cdp -k file://EM.ior"); + +$E->SpawnWaitKill (60); + +sleep (10); + +print "Invoking the controller\n"; +$controller = new PerlACE::Process ("$controller_exec", ""); +$result = $controller->SpawnWaitKill (3000); + +if ($result != 0) { + print STDERR "ERROR: The controller returned $result\n"; + $status = 1; +} + +# Invoke executor - stop the application -. +print "Invoking executor - stop the application -\n"; +$E = + new PerlACE::Process ("$CIAO_ROOT/bin/plan_launcher", + "-p flattern_deploymentplan.cdp -k file://EM.ior"); +$E->SpawnWaitKill (3000); + +sleep (99999999999); |