{"payload":{"meta":{"Graph":{"@Type":"81297157","@Value":{"Guid":"(Guid)c1bc230f-1dac-4428-adfd-0ddc880784b6","ParentGuid":"(Guid)ce3f28ef-7a07-44c7-9b7e-7670a6e659ae","Name":"(string)getChildStatus","Properties":{"@Type":"2c41fa04:IDictionary","@Value":{}},"TypeGuid":"(Guid)f8a58466-d7f6-439f-bbb8-d4600e41d099","EmbeddedTypeGuids":{"@Type":"[Guid]","@Value":["(Guid)a9ed5b7e-75c5-4651-af16-d2c27e98cb94","(Guid)3b83b776-fb25-43b8-99f2-3c507c9143fc"]}}},"TypeInfos":{"2c41fa04":"{2c41fa04-1834-41c1-816e-303c7aa2c05b}","81297157":"{81297157-7ec9-45ce-845e-84cab2b88ade}","Guid":"System.Guid","string":"System.String"}},"object":{"Graph":{"@Type":"f8a58466","@Value":{"Implementation":{"@Type":"3b83b776","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextBlobForSerialisation":"(string)//Get the highest status of any dependent, not inculding fault status\n\nstatus := atDeviceStatus.off;\nfault := FALSE;\npointerToMe := THIS;\nFOR i := 0 TO devices.deviceCnt-1 DO\n\tIF devices.devices[i]^.in_parentMachine = pointerToMe THEN //Only add this gadgets power if it belongs to this machine\n\t\tIF devices.devices[i]^.out_status > status AND devices.devices[i]^.out_status < atDeviceStatus.fault THEN\n\t\t\tstatus := devices.devices[i]^.out_status;\n\t\tEND_IF\n\t\tIF devices.devices[i]^.out_status = atDeviceStatus.fault THEN\n\t\t\tfault := TRUE;\n\t\tEND_IF\n\tEND_IF\nEND_FOR\n\ndepsStatus := status;\nout_depsFault := fault;","LineInfoPersistence":"(string)c1bc230f-1dac-4428-adfd-0ddc880784b6_Impl_LineIds"}}}},"Interface":{"@Type":"a9ed5b7e","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextBlobForSerialisation":"(string)METHOD getChildStatus\nVAR_INPUT\nEND_VAR\nVAR\n\tstatus: atDeviceStatus;\n\tfault: BOOL;\n\tpointerToMe: POINTER TO atDevice;\nEND_VAR","LineInfoPersistence":"(string)c1bc230f-1dac-4428-adfd-0ddc880784b6_Decl_LineIds"}}}}}},"TypeInfos":{"3b83b776":"{3b83b776-fb25-43b8-99f2-3c507c9143fc}","a9ed5b7e":"{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}","f3878285":"{f3878285-8e4f-490b-bb1b-9acbb7eb04db}","f8a58466":"{f8a58466-d7f6-439f-bbb8-d4600e41d099}","string":"System.String"}}},"FormatVersion":"1.0"}