a class for communicating via a temporary file
Public fields
file
is a file which contains the current status
result
is a file in which data can be written or read information.
Methods
Method new()
create a new Communicator Object
Method getStatus()
get the current status
Method setStatus()
write a status to the status file
Usage
Communicator$setStatus(msg)
Arguments
msg
is the message which should be set in the file
Method setData()
write data to the result file
Usage
Communicator$setData(data)
Arguments
data
is a string which should be written to the result file
Method getData()
get the current data from the result file
Method interrupt()
set the status to "interrupt"
Method ready()
set the status to "ready"
Method running()
write a status to the status file.
Usage
Communicator$running(percComplete)
Arguments
percComplete
is the message which should be set in the file.
If percComplete is not passed than the message is set to "Running..."
Method isInterrupted()
Checks if the current status is "interrupt"
Usage
Communicator$isInterrupted()
Method destroy()
removes the temporary files.
This method has to be called at the end of the lifetime of the object!
Method clone()
The objects of this class are cloneable with this method.
Usage
Communicator$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.