DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 Tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: ┃ B T ┃
Length: 2187 (0x88b) Types: TextFile Names: »B«
└─⟦149519bd4⟧ Bits:30000546 8mm tape, Rational 1000, !projects 93-07-13 └─ ⟦124ff5788⟧ »DATA« └─⟦this⟧ └─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11 └─ ⟦129cab021⟧ »DATA« └─⟦this⟧ └─⟦f64eaa120⟧ Bits:30000752 8mm tape, Rational 1000, !projects 93 02 16 └─ ⟦6f12a12be⟧ »DATA« └─⟦this⟧ └─⟦2f6cfab89⟧ Bits:30000547 8mm tape, Rational 1000, !projects 94-01-04 └─ ⟦d65440be7⟧ »DATA« └─⟦this⟧
with Expertsystem; use Expertsystem; with Ball, Box, Sticker; use Ball, Box, Sticker; package body Balls_Boxes_Stickers_Tests is ------------------------------------------------------------------------------ function Pack_It_Test (Ba : Ball.Object; Bo : Box.Object; S : Sticker.Object) return Boolean is begin return Ball.Place (Ba) = Ball.Is_On_Heap and then Ball.Size (Ba) <= Box.Max_Size and then Box.State (Bo) = Box.Is_Empty and then Box.Size (Bo) > Ball.Size (Ba) and then Sticker.Colors'Image (Sticker.Color (S)) = Ball.Colors'Image (Ball.Color (Ba)) and then not Box.Exist (Between => Ball.Size (Ba), And_Size => Box.Size (Bo), In_Kind_Of_Collection => Empty_Boxes); end Pack_It_Test; ------------------------------------------------------------------------------ function Sticker_Lack_Test (Ba : Ball.Object) return Boolean is begin return Ball.Place (Ba) = Ball.Is_On_Heap and then Ball.Size (Ba) <= Box.Max_Size and then not Sticker.Exist (Ball.Colors'Image (Ball.Color (Ba)), In_Kind_Of_Collection => Unused_Stickers); end Sticker_Lack_Test; ------------------------------------------------------------------------------ function Box_Lack_Test (Ba : Ball.Object) return Boolean is Ok : Boolean; begin return Ball.Place (Ba) = Ball.Is_On_Heap and then Ball.Size (Ba) <= Box.Max_Size and then not Box.Exist (Greater_Than => Ball.Size (Ba), In_Kind_Of_Collection => Empty_Boxes); end Box_Lack_Test; ------------------------------------------------------------------------------ function Too_Big_Test (Ba : Ball.Object) return Boolean is begin return Ball.Place (Ba) = Ball.Is_On_Heap and then Ball.Size (Ba) > Box.Max_Size; end Too_Big_Test; end Balls_Boxes_Stickers_Tests;