carputils
Doxygen code documentation for the python framework controlling openCARP
Public Member Functions | List of all members
carputils.job.command.PythonCommand Class Reference

A command defined by a self-contained Python function. More...

Inheritance diagram for carputils.job.command.PythonCommand:
carputils.job.command.Command

Public Member Functions

def __init__ (self, function, message=None)
 
def execute (self)
 Run this command right now. More...
 
def bash (self)
 Generate a bash statement executing this command. More...
 
- Public Member Functions inherited from carputils.job.command.Command
def execute (self)
 Run this command right now. More...
 
def bash (self)
 Generate a bash statement executing this command. More...
 

Detailed Description

A command defined by a self-contained Python function.

Parameters

function function The command to execute in bash

Constructor & Destructor Documentation

◆ __init__()

def carputils.job.command.PythonCommand.__init__ (   self,
  function,
  message = None 
)

Member Function Documentation

◆ bash()

def carputils.job.command.PythonCommand.bash (   self)

Generate a bash statement executing this command.

◆ execute()

def carputils.job.command.PythonCommand.execute (   self)

Run this command right now.


The documentation for this class was generated from the following file: