net.officefloor.eclipse.office.models
Class AbstractTaskAdministrationJoinPointModel

java.lang.Object
  extended by net.officefloor.model.AbstractModel
      extended by net.officefloor.eclipse.office.models.AbstractTaskAdministrationJoinPointModel
All Implemented Interfaces:
Model
Direct Known Subclasses:
PostTaskAdministrationJointPointModel, PreTaskAdministrationJointPointModel

public abstract class AbstractTaskAdministrationJoinPointModel
extends AbstractModel

Links the DutyModel to the OfficeTaskModel administration join point.

Author:
Daniel Sagenschneider

Constructor Summary
AbstractTaskAdministrationJoinPointModel(OfficeTaskModel task, boolean isPreRatherThanPost)
          Initiate.
 
Method Summary
 OfficeTaskModel getTask()
          Obtains the OfficeTaskModel.
 boolean isPreRatherThanPost()
          Indicates if pre Duty rather than post Duty.
 void triggerDutyChangeEvent()
          Triggers a TaskAdministrationJoinPointEvent.CHANGE_DUTIES event.
 
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
 

Constructor Detail

AbstractTaskAdministrationJoinPointModel

public AbstractTaskAdministrationJoinPointModel(OfficeTaskModel task,
                                                boolean isPreRatherThanPost)
Initiate.

Parameters:
task - OfficeTaskModel.
isPreRatherThanPost - Flag indicating if pre Duty rather than post Duty.
Method Detail

getTask

public OfficeTaskModel getTask()
Obtains the OfficeTaskModel.

Returns:
OfficeTaskModel.

isPreRatherThanPost

public boolean isPreRatherThanPost()
Indicates if pre Duty rather than post Duty.

Returns:
true if pre Duty, otherwise false if post Duty.

triggerDutyChangeEvent

public void triggerDutyChangeEvent()
Triggers a TaskAdministrationJoinPointEvent.CHANGE_DUTIES event.



Copyright © 2005-2013. All Rights Reserved.