def __str__(self):
        """
        Returns:
            A string representing the node as it should be represented in the dag file.
        """
        result = '%s %s %s\n' % (self.type, self.job.name, self.job.job_file)
        if self.dir:
            result += ' DIR %s' % (self.dir,)
        if self.noop:
            result += ' NOOP'
        if self.done:
            result += ' DONE'
        return result
def __str__ ( self ) : result = '%s %s %s\n' % ( self . type , self . job . name , self . job . job_file ) if self . dir : result += ' DIR %s' % ( self . dir , ) if self . noop : result += ' NOOP' if self . done : result += ' DONE' return result
Returns:
            A string representing the node as it should be represented in the dag file.