equal
deleted
inserted
replaced
988 |
988 |
989 def ExtractConvergenceInputs(self, convergence, pou): |
989 def ExtractConvergenceInputs(self, convergence, pou): |
990 instances = [] |
990 instances = [] |
991 for connectionPointIn in convergence.getconnectionPointIn(): |
991 for connectionPointIn in convergence.getconnectionPointIn(): |
992 connections = connectionPointIn.getconnections() |
992 connections = connectionPointIn.getconnections() |
993 if len(connections) == 1: |
993 if connections is not None and len(connections) == 1: |
994 instanceLocalId = connections[0].getrefLocalId() |
994 instanceLocalId = connections[0].getrefLocalId() |
995 body = pou.getbody() |
995 body = pou.getbody() |
996 if isinstance(body, ListType): |
996 if isinstance(body, ListType): |
997 body = body[0] |
997 body = body[0] |
998 instances.append(body.getcontentInstance(instanceLocalId)) |
998 instances.append(body.getcontentInstance(instanceLocalId)) |
1008 "transitions" : [], |
1008 "transitions" : [], |
1009 "actions" : []} |
1009 "actions" : []} |
1010 if step.connectionPointIn: |
1010 if step.connectionPointIn: |
1011 instances = [] |
1011 instances = [] |
1012 connections = step.connectionPointIn.getconnections() |
1012 connections = step.connectionPointIn.getconnections() |
1013 if len(connections) == 1: |
1013 if connections is not None and len(connections) == 1: |
1014 instanceLocalId = connections[0].getrefLocalId() |
1014 instanceLocalId = connections[0].getrefLocalId() |
1015 body = pou.getbody() |
1015 body = pou.getbody() |
1016 if isinstance(body, ListType): |
1016 if isinstance(body, ListType): |
1017 body = body[0] |
1017 body = body[0] |
1018 instance = body.getcontentInstance(instanceLocalId) |
1018 instance = body.getcontentInstance(instanceLocalId) |
1037 def GenerateSFCJump(self, jump, pou): |
1037 def GenerateSFCJump(self, jump, pou): |
1038 jump_target = jump.gettargetName() |
1038 jump_target = jump.gettargetName() |
1039 if jump.connectionPointIn: |
1039 if jump.connectionPointIn: |
1040 instances = [] |
1040 instances = [] |
1041 connections = jump.connectionPointIn.getconnections() |
1041 connections = jump.connectionPointIn.getconnections() |
1042 if len(connections) == 1: |
1042 if connections is not None and len(connections) == 1: |
1043 instanceLocalId = connections[0].getrefLocalId() |
1043 instanceLocalId = connections[0].getrefLocalId() |
1044 body = pou.getbody() |
1044 body = pou.getbody() |
1045 if isinstance(body, ListType): |
1045 if isinstance(body, ListType): |
1046 body = body[0] |
1046 body = body[0] |
1047 instance = body.getcontentInstance(instanceLocalId) |
1047 instance = body.getcontentInstance(instanceLocalId) |