This wiki article contains incomplete and informal notes about the MPS, the precursor to more formal documentation. Not confidential. Readership: MPS users and developers.
[Incomplete... Should eventually go into new Guide section of design/poolamc. RHSK 2007-01-18]
See also segment state diagram.
Lots of complex MPS concepts come together in poolamc. This document first states the problem, and then carves it up to arrive a the solution.
Input:
Output
The things that contribute to colour are: SegGrey, SegWhite, SegNailed, segment mode, and (if Board) "nails" (marks in the board).
Buffer colour is an extra complication.
Mobile mode requires the whole seg to be the same colour. Can the Mobile mode support all the various colour transitions?
Board and Stuck modes are used to record ........ er....
AMC is expected to mostly avoid this.
Non-boarded segs are always all one colour: AMCScan on these always scans all objects.
Boarded segs:
But in emergency mode, all fixing (even of exact refs) is in-place. In emergency mode, a seg with a board will keep its board. So AMCScan on boarded segments (the misnamed amsScanNailed and amcScanNailedOnce) must loop: do { newMarks = 0; ... } while (newMarks)
. (Communication between these two happens through the poorly named "moreReturn").
In emergency mode on a mobile (non-boarded) or already stuck seg, .... [what happens here?]
AMS also has a loop: see do { } while (amsseg->marksChanged)
in AMSScan.
2007-01-15 RHSK Created. 2007-04-30 RHSK Link to seg-state diagram.
This document is copyright © 2007 Ravenbrook Limited. All rights reserved. This is an open source license. Contact Ravenbrook for commercial licensing options.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
This software is provided by the copyright holders and contributors "as is" and any express or implied warranties, including, but not limited to, the implied warranties of merchantability, fitness for a particular purpose, or non-infringement, are disclaimed. In no event shall the copyright holders and contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.