public abstract class Backend
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
Backend(java.lang.String name)
Constructs backend with the specified name.
|
Modifier and Type | Method and Description |
---|---|
void |
debugWrite(java.lang.String line)
Writes the line to the backend's debug file.
|
java.io.File |
getDebugFile()
Returns the backend's debug file.
|
java.lang.String |
getName()
Returns the backend name.
|
boolean |
isActive()
Checks whether the backend is active.
|
void |
setActive(boolean active)
Makes the backend active or not depending on the flag value.
|
void |
setDebugFile(java.io.File file)
Initializes the backend's debug file.
|
abstract void |
start(Entity entity)
Elaborates the specified entity.
|
protected Backend(java.lang.String name)
name
- The backend name.public java.lang.String getName()
public boolean isActive()
true
when the backend is active, false
otherwise.public void setActive(boolean active)
active
- The activity flag.public java.io.File getDebugFile()
public void setDebugFile(java.io.File file)
file
- The backend's debug file.public void debugWrite(java.lang.String line)
line
- The line to be written.public abstract void start(Entity entity)
entity
- Entity to be elaborated.