Package net.officefloor.activity.model
Class ActivityModel
- java.lang.Object
-
- net.officefloor.model.AbstractModel
-
- net.officefloor.activity.model.ActivityModel
-
- All Implemented Interfaces:
ItemModel<ActivityModel>
,Model
@Generated("net.officefloor.model.generate.ModelGenerator") public class ActivityModel extends AbstractModel implements ItemModel<ActivityModel>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ActivityModel.ActivityEvent
-
Constructor Summary
Constructors Constructor Description ActivityModel()
Default constructor.ActivityModel(ActivitySectionModel[] activitySection, ActivityProcedureModel[] activityProcedure, ActivityExceptionModel[] activityException, ActivityInputModel[] activityInput, ActivityOutputModel[] activityOutput)
Convenience constructor.ActivityModel(ActivitySectionModel[] activitySection, ActivityProcedureModel[] activityProcedure, ActivityExceptionModel[] activityException, ActivityInputModel[] activityInput, ActivityOutputModel[] activityOutput, int x, int y)
Convenience constructor allowing XY initialising.
-
Method Summary
-
Methods inherited from class net.officefloor.model.AbstractModel
addItemToList, addPropertyChangeListener, changeField, firePropertyChange, getX, getY, removeItemFromList, removePropertyChangeListener, setX, setY
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.officefloor.model.Model
addPropertyChangeListener, getX, getY, removePropertyChangeListener, setX, setY
-
-
-
-
Constructor Detail
-
ActivityModel
public ActivityModel()
Default constructor.
-
ActivityModel
public ActivityModel(ActivitySectionModel[] activitySection, ActivityProcedureModel[] activityProcedure, ActivityExceptionModel[] activityException, ActivityInputModel[] activityInput, ActivityOutputModel[] activityOutput)
Convenience constructor.- Parameters:
activitySection
- Activity section.activityProcedure
- Activity procedure.activityException
- Activity exception.activityInput
- Activity input.activityOutput
- Activity output.
-
ActivityModel
public ActivityModel(ActivitySectionModel[] activitySection, ActivityProcedureModel[] activityProcedure, ActivityExceptionModel[] activityException, ActivityInputModel[] activityInput, ActivityOutputModel[] activityOutput, int x, int y)
Convenience constructor allowing XY initialising.- Parameters:
activitySection
- Activity section.activityProcedure
- Activity procedure.activityException
- Activity exception.activityInput
- Activity input.activityOutput
- Activity output.x
- Horizontal location.y
- Vertical location.
-
-
Method Detail
-
getActivitySections
public java.util.List<ActivitySectionModel> getActivitySections()
- Returns:
- Activity section.
-
addActivitySection
public void addActivitySection(ActivitySectionModel activitySection)
- Parameters:
activitySection
- Activity section.
-
removeActivitySection
public void removeActivitySection(ActivitySectionModel activitySection)
- Parameters:
activitySection
- Activity section.
-
getActivityProcedures
public java.util.List<ActivityProcedureModel> getActivityProcedures()
- Returns:
- Activity procedure.
-
addActivityProcedure
public void addActivityProcedure(ActivityProcedureModel activityProcedure)
- Parameters:
activityProcedure
- Activity procedure.
-
removeActivityProcedure
public void removeActivityProcedure(ActivityProcedureModel activityProcedure)
- Parameters:
activityProcedure
- Activity procedure.
-
getActivityExceptions
public java.util.List<ActivityExceptionModel> getActivityExceptions()
- Returns:
- Activity exception.
-
addActivityException
public void addActivityException(ActivityExceptionModel activityException)
- Parameters:
activityException
- Activity exception.
-
removeActivityException
public void removeActivityException(ActivityExceptionModel activityException)
- Parameters:
activityException
- Activity exception.
-
getActivityInputs
public java.util.List<ActivityInputModel> getActivityInputs()
- Returns:
- Activity input.
-
addActivityInput
public void addActivityInput(ActivityInputModel activityInput)
- Parameters:
activityInput
- Activity input.
-
removeActivityInput
public void removeActivityInput(ActivityInputModel activityInput)
- Parameters:
activityInput
- Activity input.
-
getActivityOutputs
public java.util.List<ActivityOutputModel> getActivityOutputs()
- Returns:
- Activity output.
-
addActivityOutput
public void addActivityOutput(ActivityOutputModel activityOutput)
- Parameters:
activityOutput
- Activity output.
-
removeActivityOutput
public void removeActivityOutput(ActivityOutputModel activityOutput)
- Parameters:
activityOutput
- Activity output.
-
removeConnections
public RemoveConnectionsAction<ActivityModel> removeConnections()
Remove Connections.- Specified by:
removeConnections
in interfaceItemModel<ActivityModel>
- Returns:
RemoveConnectionsAction
to remove theConnectionModel
instances.
-
-