This entry was posted on Thursday, December 20th, 2007 at 3:52 pm and is filed under FAQ. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
When are the image name and id set?
Q: “I’m confused about image ids, names and logon/logoff.”
A: The name of an image is documentary only, and is set by VOSSServer>>imageName:.
The (default) ImageID is a random 6-digit integer assigned automatically (during VOSSRoot class>>initializeVOSS), identifies the image in system log messages written to <myspace>.log, and also may be used to control the number of concurrent images logged on to any virtual space.
Neither the ImageID nor ImageName are prompted for interactively on initialization of the runtime version of VOSS, only in the development version. The ImageName may be set at any time by
LocalVOSSServer imageName: aString.
or
LocalVOSSServer renameImage. “via a dialog box”
The name of a virtual space is its file pathname.
VOManager newForExistingSpace: ‘D:\vospaces\myspace’.
creates a new instance of VOManager which connects the image to the files and assumes that they exist; i.e. it will fail if they don’t all exist.
VOManager newWithFullPathName: ‘D:\vospaces\myspace’.
assumes they don’t exist and will fail if any of them does exist.
Connect/Disconnect means a VOManager which knows the file pathname is created/removed.
Log-on/Log-off means the VOManager opens/closes the files and registers its log-on/log-off in the virtual space by a system transaction, so there is a persistent log of which images logged-on/off and when.
Leave a Reply
