From fd1a0a13749338ead01eddf59663704aae539ea7 Mon Sep 17 00:00:00 2001 From: MW Date: Sun, 10 Jun 2007 19:08:51 +0000 Subject: Added InterSimComms (Likely to be renamed) to the commsManager and moved the InformClientOfNeighbours method into that. --- .../InterSimComms/InterSimsCommsBase.cs | 19 +++++++++ .../InterSimComms/InterSimsCommsLocal.cs | 29 +++++++++++++ .../InterSimComms/InterSimsCommsOGS.cs | 16 ++++++++ .../OpenGrid.Framework.Communications.csproj | 47 ++++++++++++---------- .../OpenGrid.Framework.Communications.dll.build | 3 ++ .../RegionServerCommsLocal.cs | 16 ++------ .../RegionServerCommsManager.cs | 10 ++--- .../RegionServerCommsOGS.cs | 16 ++------ .../SandBoxManager.cs | 10 +---- 9 files changed, 103 insertions(+), 63 deletions(-) create mode 100644 Common/OpenGrid.Framework.Communications/InterSimComms/InterSimsCommsBase.cs create mode 100644 Common/OpenGrid.Framework.Communications/InterSimComms/InterSimsCommsLocal.cs create mode 100644 Common/OpenGrid.Framework.Communications/InterSimComms/InterSimsCommsOGS.cs (limited to 'Common') diff --git a/Common/OpenGrid.Framework.Communications/InterSimComms/InterSimsCommsBase.cs b/Common/OpenGrid.Framework.Communications/InterSimComms/InterSimsCommsBase.cs new file mode 100644 index 0000000..972506f --- /dev/null +++ b/Common/OpenGrid.Framework.Communications/InterSimComms/InterSimsCommsBase.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Text; +using OpenSim.Framework.Types; +using OpenSim.Framework; + +namespace OpenGrid.Framework.Communications +{ + public abstract class InterSimsCommsBase + { + /// + /// Informs a neighbouring sim to expect a child agent + /// + /// + /// + /// + public abstract bool InformNeighbourOfChildAgent(ulong regionHandle, AgentCircuitData agentData); + } +} diff --git a/Common/OpenGrid.Framework.Communications/InterSimComms/InterSimsCommsLocal.cs b/Common/OpenGrid.Framework.Communications/InterSimComms/InterSimsCommsLocal.cs new file mode 100644 index 0000000..bce146f --- /dev/null +++ b/Common/OpenGrid.Framework.Communications/InterSimComms/InterSimsCommsLocal.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using System.Text; +using OpenSim.Framework.Types; +using OpenSim.Framework; + +namespace OpenGrid.Framework.Communications +{ + public class InterSimsCommsLocal : InterSimsCommsBase + { + private SandBoxManager sandBoxManager; + + public InterSimsCommsLocal(SandBoxManager sandManager) + { + sandBoxManager = sandManager; + } + + /// + /// Informs a neighbouring sim to expect a child agent + /// + /// + /// + /// + public override bool InformNeighbourOfChildAgent(ulong regionHandle, AgentCircuitData agentData) //should change from agentCircuitData + { + return sandBoxManager.InformNeighbourOfChildAgent(regionHandle, agentData); + } + } +} diff --git a/Common/OpenGrid.Framework.Communications/InterSimComms/InterSimsCommsOGS.cs b/Common/OpenGrid.Framework.Communications/InterSimComms/InterSimsCommsOGS.cs new file mode 100644 index 0000000..b6e98da --- /dev/null +++ b/Common/OpenGrid.Framework.Communications/InterSimComms/InterSimsCommsOGS.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Text; +using OpenSim.Framework.Types; +using OpenSim.Framework; + +namespace OpenGrid.Framework.Communications +{ + public class InterSimsCommsOGS : InterSimsCommsBase + { + public override bool InformNeighbourOfChildAgent(ulong regionHandle, AgentCircuitData agentData) //should change from agentCircuitData + { + return false; + } + } +} diff --git a/Common/OpenGrid.Framework.Communications/OpenGrid.Framework.Communications.csproj b/Common/OpenGrid.Framework.Communications/OpenGrid.Framework.Communications.csproj index 21a0cd7..e8f10f0 100644 --- a/Common/OpenGrid.Framework.Communications/OpenGrid.Framework.Communications.csproj +++ b/Common/OpenGrid.Framework.Communications/OpenGrid.Framework.Communications.csproj @@ -1,4 +1,4 @@ - + Local 8.0.50727 @@ -6,8 +6,7 @@ {683344D5-0000-0000-0000-000000000000} Debug AnyCPU - - + OpenGrid.Framework.Communications @@ -16,11 +15,9 @@ IE50 false Library - - + OpenGrid.Framework.Communications - - + @@ -31,8 +28,7 @@ TRACE;DEBUG - - + True 4096 False @@ -41,8 +37,7 @@ False False 4 - - + False @@ -51,8 +46,7 @@ TRACE - - + False 4096 True @@ -61,20 +55,18 @@ False False 4 - - + - + System.dll False - - + System.Xml.dll False - + ..\..\bin\libsecondlife.dll False @@ -84,7 +76,7 @@ OpenSim.Framework {8ACA2445-0000-0000-0000-000000000000} {FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - False + False @@ -97,6 +89,9 @@ Code + + Code + Code @@ -106,10 +101,18 @@ Code + + Code + + + Code + + + Code + Code - Code @@ -127,4 +130,4 @@ - \ No newline at end of file + diff --git a/Common/OpenGrid.Framework.Communications/OpenGrid.Framework.Communications.dll.build b/Common/OpenGrid.Framework.Communications/OpenGrid.Framework.Communications.dll.build index 952051b..069983c 100644 --- a/Common/OpenGrid.Framework.Communications/OpenGrid.Framework.Communications.dll.build +++ b/Common/OpenGrid.Framework.Communications/OpenGrid.Framework.Communications.dll.build @@ -18,6 +18,9 @@ + + + diff --git a/Common/OpenGrid.Framework.Communications/RegionServerCommsLocal.cs b/Common/OpenGrid.Framework.Communications/RegionServerCommsLocal.cs index bfcd15f..aeaeb7b 100644 --- a/Common/OpenGrid.Framework.Communications/RegionServerCommsLocal.cs +++ b/Common/OpenGrid.Framework.Communications/RegionServerCommsLocal.cs @@ -14,19 +14,11 @@ namespace OpenGrid.Framework.Communications public SandBoxManager SandManager = new SandBoxManager(); public RegionServerCommsLocal() { - userServer = new UserServer.UserCommsManagerLocal(); //Local User Server - gridServer = new GridServer.GridCommsManagerLocal(SandManager); //Locl Grid Server + UserServer = new UserServer.UserCommsManagerLocal(); //Local User Server + GridServer = new GridServer.GridCommsManagerLocal(SandManager); //Locl Grid Server + InterSims = new InterSimsCommsLocal(SandManager); } - /// - /// informs a neighbouring sim to expect a child agent - /// - /// - /// - /// - public override bool InformNeighbourOfChildAgent(ulong regionHandle, AgentCircuitData agentData) //should change from agentCircuitData - { - return SandManager.InformNeighbourOfChildAgent(regionHandle, agentData); - } + } } diff --git a/Common/OpenGrid.Framework.Communications/RegionServerCommsManager.cs b/Common/OpenGrid.Framework.Communications/RegionServerCommsManager.cs index 810477a..e48ac71 100644 --- a/Common/OpenGrid.Framework.Communications/RegionServerCommsManager.cs +++ b/Common/OpenGrid.Framework.Communications/RegionServerCommsManager.cs @@ -12,17 +12,13 @@ namespace OpenGrid.Framework.Communications public class RegionServerCommsManager { - public UserServer.UserCommsManagerBase userServer; - public GridServer.GridCommsManagerBase gridServer; + public UserServer.UserCommsManagerBase UserServer; + public GridServer.GridCommsManagerBase GridServer; + public InterSimsCommsBase InterSims; public RegionServerCommsManager() { } - - public virtual bool InformNeighbourOfChildAgent(ulong regionHandle, AgentCircuitData agentData) //should change from agentCircuitData - { - return false; - } } } diff --git a/Common/OpenGrid.Framework.Communications/RegionServerCommsOGS.cs b/Common/OpenGrid.Framework.Communications/RegionServerCommsOGS.cs index 75b211d..02f17f0 100644 --- a/Common/OpenGrid.Framework.Communications/RegionServerCommsOGS.cs +++ b/Common/OpenGrid.Framework.Communications/RegionServerCommsOGS.cs @@ -10,20 +10,10 @@ namespace OpenGrid.Framework.Communications { public RegionServerCommsOGS() { - userServer = new UserServer.UserCommsManagerOGS(); //Remote User Server - gridServer = new GridServer.GridCommsManagerOGS(); //Remote Grid Server + UserServer = new UserServer.UserCommsManagerOGS(); //Remote User Server + GridServer = new GridServer.GridCommsManagerOGS(); //Remote Grid Server + InterSims = new InterSimsCommsOGS(); } - - /// - /// informs a neighbouring sim to expect a child agent - /// - /// - /// - /// - public override bool InformNeighbourOfChildAgent(ulong regionHandle, AgentCircuitData agentData) //should change from agentCircuitData - { - return false; - } } } diff --git a/Common/OpenGrid.Framework.Communications/SandBoxManager.cs b/Common/OpenGrid.Framework.Communications/SandBoxManager.cs index 4094658..dc2c3cb 100644 --- a/Common/OpenGrid.Framework.Communications/SandBoxManager.cs +++ b/Common/OpenGrid.Framework.Communications/SandBoxManager.cs @@ -19,9 +19,7 @@ namespace OpenGrid.Framework.Communications } /// - /// Main Register a region method with the CommsManager. - /// Should do anything that is needed and also call the RegisterRegion method in the gridserver class - /// to inform the grid server (in grid mode). + /// Register a region method with the SandBoxManager. /// /// /// @@ -43,9 +41,6 @@ namespace OpenGrid.Framework.Communications } /// - /// In the current class structure this shouldn't be here as it should only be in the gridserver class - /// but having it there in sandbox mode makes things very difficult, so for now until something is sorted out - /// it will have to be here as well /// /// /// @@ -73,9 +68,6 @@ namespace OpenGrid.Framework.Communications } /// - /// informs a neighbouring sim to expect a child agent - /// I guess if we are going to stick with the current class structure then we need a intersim class - /// but think we need to really rethink the class structure as currently it makes things very messy for sandbox mode /// /// /// -- cgit v1.1