@Generated(value="net.officefloor.model.generate.ModelGenerator") public class WorkModel extends AbstractModel implements ItemModel<WorkModel>
Modifier and Type | Class and Description |
---|---|
static class |
WorkModel.WorkEvent |
Constructor and Description |
---|
WorkModel()
Default constructor.
|
WorkModel(String workName,
String workSourceClassName)
Convenience constructor for new non-linked instance.
|
WorkModel(String workName,
String workSourceClassName,
WorkToInitialTaskModel initialTask,
WorkTaskModel[] workTask,
PropertyModel[] property)
Convenience constructor.
|
WorkModel(String workName,
String workSourceClassName,
WorkToInitialTaskModel initialTask,
WorkTaskModel[] workTask,
PropertyModel[] property,
int x,
int y)
Convenience constructor allowing XY initialising.
|
Modifier and Type | Method and Description |
---|---|
void |
addProperty(PropertyModel property) |
void |
addWorkTask(WorkTaskModel workTask) |
WorkToInitialTaskModel |
getInitialTask() |
List<PropertyModel> |
getProperties() |
String |
getWorkName() |
String |
getWorkSourceClassName() |
List<WorkTaskModel> |
getWorkTasks() |
RemoveConnectionsAction<WorkModel> |
removeConnections()
Remove Connections.
|
void |
removeProperty(PropertyModel property) |
void |
removeWorkTask(WorkTaskModel workTask) |
void |
setInitialTask(WorkToInitialTaskModel initialTask) |
void |
setWorkName(String workName) |
void |
setWorkSourceClassName(String workSourceClassName) |
addItemToList, addPropertyChangeListener, changeField, firePropertyChange, getX, getY, removeItemFromList, removePropertyChangeListener, setX, setY
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyChangeListener, getX, getY, removePropertyChangeListener, setX, setY
public WorkModel()
public WorkModel(String workName, String workSourceClassName)
workName
- Work name.workSourceClassName
- Work source class name.public WorkModel(String workName, String workSourceClassName, WorkToInitialTaskModel initialTask, WorkTaskModel[] workTask, PropertyModel[] property)
workName
- Work name.workSourceClassName
- Work source class name.initialTask
- Initial task.workTask
- Work task.property
- Property.public WorkModel(String workName, String workSourceClassName, WorkToInitialTaskModel initialTask, WorkTaskModel[] workTask, PropertyModel[] property, int x, int y)
workName
- Work name.workSourceClassName
- Work source class name.initialTask
- Initial task.workTask
- Work task.property
- Property.x
- Horizontal location.y
- Vertical location.public String getWorkName()
public void setWorkName(String workName)
workName
- Work name.public String getWorkSourceClassName()
public void setWorkSourceClassName(String workSourceClassName)
workSourceClassName
- Work source class name.public WorkToInitialTaskModel getInitialTask()
public void setInitialTask(WorkToInitialTaskModel initialTask)
initialTask
- Initial task.public List<WorkTaskModel> getWorkTasks()
public void addWorkTask(WorkTaskModel workTask)
workTask
- Work task.public void removeWorkTask(WorkTaskModel workTask)
workTask
- Work task.public List<PropertyModel> getProperties()
public void addProperty(PropertyModel property)
property
- Property.public void removeProperty(PropertyModel property)
property
- Property.public RemoveConnectionsAction<WorkModel> removeConnections()
removeConnections
in interface ItemModel<WorkModel>
RemoveConnectionsAction
to remove the ConnectionModel
instances.Copyright © 2005–2016. All rights reserved.