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:
net.officefloor.model.Model
Direct Known Subclasses:
PostTaskAdministrationJointPointModel, PreTaskAdministrationJointPointModel

public abstract class AbstractTaskAdministrationJoinPointModel
extends net.officefloor.model.AbstractModel

Links the DutyModel to the OfficeTaskModel administration join point.

Author:
Daniel Sagenschneider

Constructor Summary
AbstractTaskAdministrationJoinPointModel(net.officefloor.model.office.OfficeTaskModel task, boolean isPreRatherThanPost)
          Initiate.
 
Method Summary
 net.officefloor.model.office.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(net.officefloor.model.office.OfficeTaskModel task,
                                                boolean isPreRatherThanPost)
Initiate.

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

getTask

public net.officefloor.model.office.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-2012. All Rights Reserved.