set the pipe connection according statuses at construction and isAvaliableToJoint