|
|
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 - metrics - downloadIndex: B T
Length: 1242 (0x4da)
Types: TextFile
Names: »B«
└─⟦bfaa708f6⟧ Bits:30000531 8mm tape, Rational 1000, INSIGHT 1_3_0
└─⟦c51948655⟧ »DATA«
└─⟦266b31e86⟧
└─⟦this⟧
with Message;
with Message_Types;
with Client;
with Network;
pragma Elaborate (Client);
package body Seat_Controls is
Packet : Message.Packet;
procedure Light_On (Seat : Seat_Id) is
Light_Manager_Id : Client.Id := Client.Get_Id ("Light_Manager");
begin
Message.Initialize (Packet, Light_Manager_Id);
Message.Set_Destination (Packet, Light_Manager_Id);
Message.Set_Body (Packet, "T" & Seat_Id'Image (Seat));
Network.Send (Packet);
end Light_On;
procedure Light_Off (Seat : Seat_Id) is
Light_Manager_Id : Client.Id := Client.Get_Id ("Light_Manager");
begin
Message.Initialize (Packet, Light_Manager_Id);
Message.Set_Destination (Packet, Light_Manager_Id);
Message.Set_Body (Packet, "F" & Seat_Id'Image (Seat));
Network.Send (Packet);
end Light_Off;
procedure Call_Button (Seat : Seat_Id) is
Light_Manager_Id : Client.Id := Client.Get_Id ("Light_Manager");
begin
Message.Initialize (Packet, Light_Manager_Id);
Message.Set_Destination (Packet, Light_Manager_Id);
Message.Set_Body (Packet, "C" & Seat_Id'Image (Seat));
Network.Send (Packet);
end Call_Button;
end Seat_Controls;