|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 3072 (0xc00) Types: Ada Source Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Light_Controls, seg_00fd9d
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─⟦5a81ac88f⟧ »Space Info Vol 1« └─⟦this⟧
with Client; with Message; with Message_Types; with Network; pragma Elaborate (Client); package body Light_Controls is Light_Controller_Id : Client.Id; Packet : Message.Packet; Light_State : array (Light_Id range 0 .. 500) of Boolean := (0 .. 500 => False); procedure On (Light : Light_Id) is Light_Controller_Id : Client.Id := Client.Get_Id ("Light_Controller"); begin Message.Initialize (Packet, Light_Controller_Id); Message.Set_Destination (Packet, Light_Controller_Id); Message.Set_Body (Packet, "T" & Light_Id'Image (Light)); Light_State (Light) := True; Network.Send (Packet); end On; procedure Off (Light : Light_Id) is Light_Controller_Id : Client.Id := Client.Get_Id ("Light_Controller"); begin Message.Initialize (Packet, Light_Controller_Id); Message.Set_Destination (Packet, Light_Controller_Id); Message.Set_Body (Packet, "F" & Light_Id'Image (Light)); Light_State (Light) := False; Network.Send (Packet); end Off; procedure Toggle (Light : Light_Id) is Light_Controller_Id : Client.Id := Client.Get_Id ("Light_Controller"); begin Message.Initialize (Packet, Light_Controller_Id); Message.Set_Destination (Packet, Light_Controller_Id); if Light_State (Light) then Message.Set_Body (Packet, "F" & Light_Id'Image (Light)); Light_State (Light) := False; else Message.Set_Body (Packet, "T" & Light_Id'Image (Light)); Light_State (Light) := True; end if; Network.Send (Packet); end Toggle; procedure Cabin_On (Light : Cabin_Light_Id) is begin [statement] end Cabin_On; procedure Cabin_Off (Light : Cabin_Light_Id) is begin [statement] end Cabin_Off; end Light_Controls;
nblk1=2 nid=0 hdr6=4 [0x00] rec0=1f rec1=00 rec2=01 rec3=03c [0x01] rec0=22 rec1=00 rec2=02 rec3=000 tail 0x2150bb234822f63075e93 0x42a00088462060003