C# Class Universe.Simulation.Base.SimulationBase

Inheritance: ISimulationBase
Afficher le fichier Open project: Virtual-Universe/Virtual-Universe

Protected Properties

Свойство Type Description
m_BaseHTTPServer IHttpServer
m_Port uint
m_Servers IHttpServer>.Dictionary
m_StartupTime System.DateTime
m_TimerScriptFileName string
m_TimerScriptTime int
m_TimerScriptTimer System.Timers.Timer
m_applicationPlugins List
m_applicationRegistry IRegistryCore
m_commandLineParameters string[]
m_config IConfigSource
m_configurationLoader Universe.Framework.Configuration.ConfigurationLoader
m_defaultDataPath string
m_eventManager Universe.Framework.Services.ClassHelpers.Other.UniverseEventManager
m_mapcenter_x int
m_mapcenter_y int
m_original_config IConfigSource
m_pidFile string
m_shutdownCommandsFile string
m_startupCommandsFile string
m_version string

Méthodes publiques

Méthode Description
AddPluginCommands ( ) : void
CloseModules ( ) : void

Close all the Application Plugins

Configuration ( IConfigSource configSource ) : void

Read the configuration

Copy ( ) : ISimulationBase
GetHttpServer ( uint port ) : IHttpServer

Get an HTTPServer on the given port. It will create one if one does not exist

HandleConfigRefresh ( IScene scene, string cmd ) : void
HandleForceGC ( IScene scene, string cmd ) : void
HandleShowInfo ( IScene scene, string cmd ) : void
HandleShowVersion ( IScene scene, string cmd ) : void
HandleTimerScriptTime ( IScene scene, string cmd ) : void
Initialize ( IConfigSource originalConfig, IConfigSource configSource, string cmdParams, ConfigurationLoader configLoader ) : void

Do the initial setup for the application

InitializeModules ( ) : void
RegisterConsoleCommands ( ) : void

Register standard set of region console commands

Run ( ) : void

Run the console now that we are all done with startup

RunCommandScript ( string fileName ) : void

Run an optional startup list of commands

RunConfig ( IScene scene, string cmd ) : void
RunStartupCommands ( ) : void

Run the commands given now that startup is complete

SetUpHTTPServer ( ) : void

Set up the base HTTP server

Shutdown ( bool close ) : void

Should be overridden and referenced by descendents if they need to perform extra shutdown processing Performs any last-minute sanity checking and shuts down the region server

StartModules ( ) : void

Start the application modules

Startup ( ) : void

Performs initialization of the application, such as loading the HTTP server and modules

Méthodes protégées

Méthode Description
CreatePIDFile ( string path ) : void

Write the PID file to the hard drive

HandleQuit ( IScene scene, string args ) : void
RemovePIDFile ( ) : void

Delete the PID file now that we are done running

RunAutoTimerScript ( object sender, EventArgs e ) : void

Timer to run a specific text file as console commands. Configured in in the main .ini file

Private Methods

Méthode Description
PrintFileToConsole ( string fileName ) : void

Opens a file and uses it as input to the console command parser.

Method Details

AddPluginCommands() public méthode

public AddPluginCommands ( ) : void
Résultat void

CloseModules() public méthode

Close all the Application Plugins
public CloseModules ( ) : void
Résultat void

Configuration() public méthode

Read the configuration
public Configuration ( IConfigSource configSource ) : void
configSource IConfigSource
Résultat void

Copy() public méthode

public Copy ( ) : ISimulationBase
Résultat ISimulationBase

CreatePIDFile() protected méthode

Write the PID file to the hard drive
protected CreatePIDFile ( string path ) : void
path string
Résultat void

GetHttpServer() public méthode

Get an HTTPServer on the given port. It will create one if one does not exist
public GetHttpServer ( uint port ) : IHttpServer
port uint
Résultat IHttpServer

HandleConfigRefresh() public méthode

public HandleConfigRefresh ( IScene scene, string cmd ) : void
scene IScene
cmd string
Résultat void

HandleForceGC() public méthode

public HandleForceGC ( IScene scene, string cmd ) : void
scene IScene
cmd string
Résultat void

HandleQuit() protected méthode

protected HandleQuit ( IScene scene, string args ) : void
scene IScene
args string
Résultat void

HandleShowInfo() public méthode

public HandleShowInfo ( IScene scene, string cmd ) : void
scene IScene
cmd string
Résultat void

HandleShowVersion() public méthode

public HandleShowVersion ( IScene scene, string cmd ) : void
scene IScene
cmd string
Résultat void

HandleTimerScriptTime() public méthode

public HandleTimerScriptTime ( IScene scene, string cmd ) : void
scene IScene
cmd string
Résultat void

Initialize() public méthode

Do the initial setup for the application
public Initialize ( IConfigSource originalConfig, IConfigSource configSource, string cmdParams, ConfigurationLoader configLoader ) : void
originalConfig IConfigSource
configSource IConfigSource
cmdParams string
configLoader Universe.Framework.Configuration.ConfigurationLoader
Résultat void

InitializeModules() public méthode

public InitializeModules ( ) : void
Résultat void

RegisterConsoleCommands() public méthode

Register standard set of region console commands
public RegisterConsoleCommands ( ) : void
Résultat void

RemovePIDFile() protected méthode

Delete the PID file now that we are done running
protected RemovePIDFile ( ) : void
Résultat void

Run() public méthode

Run the console now that we are all done with startup
public Run ( ) : void
Résultat void

RunAutoTimerScript() protected méthode

Timer to run a specific text file as console commands. Configured in in the main .ini file
protected RunAutoTimerScript ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

RunCommandScript() public méthode

Run an optional startup list of commands
public RunCommandScript ( string fileName ) : void
fileName string
Résultat void

RunConfig() public méthode

public RunConfig ( IScene scene, string cmd ) : void
scene IScene
cmd string
Résultat void

RunStartupCommands() public méthode

Run the commands given now that startup is complete
public RunStartupCommands ( ) : void
Résultat void

SetUpHTTPServer() public méthode

Set up the base HTTP server
public SetUpHTTPServer ( ) : void
Résultat void

Shutdown() public méthode

Should be overridden and referenced by descendents if they need to perform extra shutdown processing Performs any last-minute sanity checking and shuts down the region server
public Shutdown ( bool close ) : void
close bool
Résultat void

StartModules() public méthode

Start the application modules
public StartModules ( ) : void
Résultat void

Startup() public méthode

Performs initialization of the application, such as loading the HTTP server and modules
public Startup ( ) : void
Résultat void

Property Details

m_BaseHTTPServer protected_oe property

protected IHttpServer m_BaseHTTPServer
Résultat IHttpServer

m_Port protected_oe property

protected uint m_Port
Résultat uint

m_Servers protected_oe property

protected Dictionary m_Servers
Résultat IHttpServer>.Dictionary

m_StartupTime protected_oe property

Time at which this server was started
protected DateTime,System m_StartupTime
Résultat System.DateTime

m_TimerScriptFileName protected_oe property

protected string m_TimerScriptFileName
Résultat string

m_TimerScriptTime protected_oe property

protected int m_TimerScriptTime
Résultat int

m_TimerScriptTimer protected_oe property

protected Timer,System.Timers m_TimerScriptTimer
Résultat System.Timers.Timer

m_applicationPlugins protected_oe property

protected List m_applicationPlugins
Résultat List

m_applicationRegistry protected_oe property

protected IRegistryCore m_applicationRegistry
Résultat IRegistryCore

m_commandLineParameters protected_oe property

protected string[] m_commandLineParameters
Résultat string[]

m_config protected_oe property

protected IConfigSource m_config
Résultat IConfigSource

m_configurationLoader protected_oe property

protected ConfigurationLoader,Universe.Framework.Configuration m_configurationLoader
Résultat Universe.Framework.Configuration.ConfigurationLoader

m_defaultDataPath protected_oe property

protected string m_defaultDataPath
Résultat string

m_eventManager protected_oe property

protected UniverseEventManager,Universe.Framework.Services.ClassHelpers.Other m_eventManager
Résultat Universe.Framework.Services.ClassHelpers.Other.UniverseEventManager

m_mapcenter_x protected_oe property

protected int m_mapcenter_x
Résultat int

m_mapcenter_y protected_oe property

protected int m_mapcenter_y
Résultat int

m_original_config protected_oe property

protected IConfigSource m_original_config
Résultat IConfigSource

m_pidFile protected_oe property

protected string m_pidFile
Résultat string

m_shutdownCommandsFile protected_oe property

protected string m_shutdownCommandsFile
Résultat string

m_startupCommandsFile protected_oe property

protected string m_startupCommandsFile
Résultat string

m_version protected_oe property

Server version information. Usually VersionInfo + information about git commit, operating system, etc.
protected string m_version
Résultat string