DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400 Tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Rational R1000/400 Tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: ┃ T V

⟦7dfe940bd⟧ TextFile

    Length: 2950 (0xb86)
    Types: TextFile
    Names: »V«

Derivation

└─⟦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⟧ 
└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11
    └─ ⟦129cab021⟧ »DATA« 
        └─⟦e24fb53b7⟧ 
            └─⟦this⟧ 

TextFile

with Fact;
with Null_Action;
use Fact;
generic
    type Rule_Bundles is (<>);
package Generic_Rule_Base is

    type Rule_Id is private;
    No_Rule : constant Rule_Id;

    type Iterator is private;

    function Get (R : Rule_Id) return Rule_Bundles;
    function Firable_On_Facts  return Fact.Collection;
    function Firable_On_Rule   return Rule_Id;

    function Open                  return Iterator;
    function Value  (I : Iterator) return Rule_Id;
    function Next   (I : Iterator) return Iterator;
    function At_End (I : Iterator) return Boolean;

    Illegal_Bundle  : exception;
    Illegal_Rule_Id : exception;
    Overflow        : exception;


    generic
        The_Bundle : Rule_Bundles;

        type Rule_Names is (<>);

        Nothing : Rule_Names := Rule_Names'Last;

        Rule_1    : Rule_Names      := Nothing;
        Premiss_1 : Join_Descriptor := Null_Premiss;
        with procedure Action_1 (On : Fact.Collection) is Null_Action;

        Rule_2    : Rule_Names      := Nothing;
        Premiss_2 : Join_Descriptor := Null_Premiss;
        with procedure Action_2 (On : Fact.Collection) is Null_Action;

        Rule_3    : Rule_Names      := Nothing;
        Premiss_3 : Join_Descriptor := Null_Premiss;
        with procedure Action_3 (On : Fact.Collection) is Null_Action;

        Rule_4    : Rule_Names      := Nothing;
        Premiss_4 : Join_Descriptor := Null_Premiss;
        with procedure Action_4 (On : Fact.Collection) is Null_Action;

        Rule_5    : Rule_Names      := Nothing;
        Premiss_5 : Join_Descriptor := Null_Premiss;
        with procedure Action_5 (On : Fact.Collection) is Null_Action;

    package Generic_Rule_Bundle is
        procedure Do_Action (For_Rule : Rule_Id; On_Facts : Fact.Collection);
    end Generic_Rule_Bundle;

    -- generic
    --     The_Bundle : rule_Bundles;
    --     type Rule_Names is (<>);
    --     with procedure Action_1 (On_Facts : Fact.Collection) is Null_Action;
    --     with procedure Action_2 (On_Facts : Fact.Collection) is Null_Action;
    --     with procedure Action_3 (On_Facts : Fact.Collection) is Null_Action;
    --     with procedure Action_4 (On_Facts : Fact.Collection) is Null_Action;
    --     with procedure Action_5 (On_Facts : Fact.Collection) is Null_Action;
    -- package Handler is
    --     procedure Add (The_Rule : Rule_Names; Premiss : Fact.Join_Descriptor);
    --     procedure Do_Action (For_Rule : Rule_Id; On_Facts : Fact.Collection);
    -- end Handler;
    --
private
    type Rule_Id is
        record  
            Is_Valid   : Boolean := False;
            The_Bundle : Rule_Bundles;
            The_Rule   : Natural;
        end record;

    No_Rule : constant Rule_Id := Rule_Id'(Is_Valid   => False,
                                           The_Bundle => Rule_Bundles'First,
                                           The_Rule   => 0);

    type Iterator is new Natural;
end Generic_Rule_Base;