This wiki article contains incomplete and informal notes about the MPS, the precursor to more formal documentation. Not confidential. Readership: MPS users and developers.

Introduction

[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.

The Problem

Input:

Output

Colour

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.

Segment-mode transitions

Mobile mode requires the whole seg to be the same colour. Can the Mobile mode support all the various colour transitions?

Colour transitions

Board and Stuck modes are used to record ........ er....

.amc.scan.loop:

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.

B. Document History

  2007-01-15  RHSK  Created.
  2007-04-30  RHSK  Link to seg-state diagram.

C. Copyright and License

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:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Redistributions in any form must be accompanied by information on how to obtain complete source code for the this software and any accompanying software that uses this software. The source code must either be included in the distribution or be available for no more than the cost of distribution plus a nominal fee, and must be freely redistributable under reasonable conditions. For an executable file, complete source code means the source code for all modules it contains. It does not include source code for modules or files that typically accompany the major components of the operating system on which the executable file runs.

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.