C# Класс Universe.Simulation.Base.MinimalSimulationBase

Наследование: ISimulationBase
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
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_applicationRegistry IRegistryCore
m_commandLineParameters string[]
m_config IConfigSource
m_configurationLoader Universe.Framework.Configuration.ConfigurationLoader
m_consolePrompt string
m_dataPlugins List
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_servicePlugins List
m_shutdownCommandsFile string
m_startupCommandsFile string
m_version string

Открытые методы

Метод Описание
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
MinimalSimulationBase ( string consolePrompt, List dataPlugins, List servicePlugins ) : System
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

RunStartupCommands ( ) : void

Run the commands given now that startup is complete

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

Startup ( ) : void

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

runConfig ( IScene scene, string cmd ) : void

Защищенные методы

Метод Описание
CreatePIDFile ( string path ) : void

Write the PID file to the hard drive

HandleQuit ( IScene scene, string args ) : void
PrintFileToConsole ( string fileName ) : void

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

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

Описание методов

CloseModules() публичный Метод

Close all the Application Plugins
public CloseModules ( ) : void
Результат void

Configuration() публичный Метод

Read the configuration
public Configuration ( IConfigSource configSource ) : void
configSource IConfigSource
Результат void

Copy() публичный Метод

public Copy ( ) : ISimulationBase
Результат ISimulationBase

CreatePIDFile() защищенный Метод

Write the PID file to the hard drive
protected CreatePIDFile ( string path ) : void
path string
Результат void

GetHttpServer() публичный Метод

Get an HTTPServer on the given port. It will create one if one does not exist
public GetHttpServer ( uint port ) : IHttpServer
port uint
Результат IHttpServer

HandleConfigRefresh() публичный Метод

public HandleConfigRefresh ( IScene scene, string cmd ) : void
scene IScene
cmd string
Результат void

HandleForceGC() публичный Метод

public HandleForceGC ( IScene scene, string cmd ) : void
scene IScene
cmd string
Результат void

HandleQuit() защищенный Метод

protected HandleQuit ( IScene scene, string args ) : void
scene IScene
args string
Результат void

HandleShowInfo() публичный Метод

public HandleShowInfo ( IScene scene, string cmd ) : void
scene IScene
cmd string
Результат void

HandleShowVersion() публичный Метод

public HandleShowVersion ( IScene scene, string cmd ) : void
scene IScene
cmd string
Результат void

HandleTimerScriptTime() публичный Метод

public HandleTimerScriptTime ( IScene scene, string cmd ) : void
scene IScene
cmd string
Результат void

Initialize() публичный Метод

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
Результат void

InitializeModules() публичный Метод

public InitializeModules ( ) : void
Результат void

MinimalSimulationBase() публичный Метод

public MinimalSimulationBase ( string consolePrompt, List dataPlugins, List servicePlugins ) : System
consolePrompt string
dataPlugins List
servicePlugins List
Результат System

PrintFileToConsole() защищенный Метод

Opens a file and uses it as input to the console command parser.
protected PrintFileToConsole ( string fileName ) : void
fileName string name of file to use as input to the console
Результат void

RegisterConsoleCommands() публичный Метод

Register standard set of region console commands
public RegisterConsoleCommands ( ) : void
Результат void

RemovePIDFile() защищенный Метод

Delete the PID file now that we are done running
protected RemovePIDFile ( ) : void
Результат void

Run() публичный Метод

Run the console now that we are all done with startup
public Run ( ) : void
Результат void

RunAutoTimerScript() защищенный Метод

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
Результат void

RunCommandScript() публичный Метод

Run an optional startup list of commands
public RunCommandScript ( string fileName ) : void
fileName string
Результат void

RunStartupCommands() публичный Метод

Run the commands given now that startup is complete
public RunStartupCommands ( ) : void
Результат void

Shutdown() публичный Метод

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
Результат void

Startup() публичный Метод

Performs initialization of the application, such as loading the HTTP server and modules
public Startup ( ) : void
Результат void

runConfig() публичный Метод

public runConfig ( IScene scene, string cmd ) : void
scene IScene
cmd string
Результат void

Описание свойств

m_BaseHTTPServer защищенное свойство

protected IHttpServer m_BaseHTTPServer
Результат IHttpServer

m_Port защищенное свойство

protected uint m_Port
Результат uint

m_Servers защищенное свойство

protected Dictionary m_Servers
Результат IHttpServer>.Dictionary

m_StartupTime защищенное свойство

Time at which this server was started
protected DateTime,System m_StartupTime
Результат System.DateTime

m_TimerScriptFileName защищенное свойство

protected string m_TimerScriptFileName
Результат string

m_TimerScriptTime защищенное свойство

protected int m_TimerScriptTime
Результат int

m_TimerScriptTimer защищенное свойство

protected Timer,System.Timers m_TimerScriptTimer
Результат System.Timers.Timer

m_applicationRegistry защищенное свойство

protected IRegistryCore m_applicationRegistry
Результат IRegistryCore

m_commandLineParameters защищенное свойство

protected string[] m_commandLineParameters
Результат string[]

m_config защищенное свойство

protected IConfigSource m_config
Результат IConfigSource

m_configurationLoader защищенное свойство

protected ConfigurationLoader,Universe.Framework.Configuration m_configurationLoader
Результат Universe.Framework.Configuration.ConfigurationLoader

m_consolePrompt защищенное свойство

protected string m_consolePrompt
Результат string

m_dataPlugins защищенное свойство

protected List m_dataPlugins
Результат List

m_defaultDataPath защищенное свойство

protected string m_defaultDataPath
Результат string

m_eventManager защищенное свойство

protected UniverseEventManager,Universe.Framework.Services.ClassHelpers.Other m_eventManager
Результат Universe.Framework.Services.ClassHelpers.Other.UniverseEventManager

m_mapcenter_x защищенное свойство

protected int m_mapcenter_x
Результат int

m_mapcenter_y защищенное свойство

protected int m_mapcenter_y
Результат int

m_original_config защищенное свойство

protected IConfigSource m_original_config
Результат IConfigSource

m_pidFile защищенное свойство

protected string m_pidFile
Результат string

m_servicePlugins защищенное свойство

protected List m_servicePlugins
Результат List

m_shutdownCommandsFile защищенное свойство

protected string m_shutdownCommandsFile
Результат string

m_startupCommandsFile защищенное свойство

protected string m_startupCommandsFile
Результат string

m_version защищенное свойство

Server version information. Usually VersionInfo + information about git commit, operating system, etc.
protected string m_version
Результат string