C# 클래스 Universe.Simulation.Base.MinimalSimulationBase

상속: ISimulationBase
파일 보기 프로젝트 열기: Virtual-Universe/Virtual-Universe

보호된 프로퍼티들

프로퍼티 타입 설명
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