com.prozima.pengine
Class UpdateResourceCommand

java.lang.Object
  extended by com.prozima.pengine.UpdateResourceCommand
All Implemented Interfaces:
Command

public class UpdateResourceCommand
extends java.lang.Object
implements Command

Command specifies how a resource should be modified.


Constructor Summary
UpdateResourceCommand(int inResourceID, boolean inIsImport)
          Create the command and specify the resource to be modified.
 
Method Summary
 void setName(java.lang.String inName)
          Change the name of the resource.
 void setTimeTable(TimeTable inTimeTable)
          Change the TimeTable for this resource.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateResourceCommand

public UpdateResourceCommand(int inResourceID,
                             boolean inIsImport)
Create the command and specify the resource to be modified.

Parameters:
inResourceID - ID of the resource.
inIsImport - true if modified data comes from persistent storage, false if it comes from user interaction.
Method Detail

setName

public void setName(java.lang.String inName)
Change the name of the resource.

Parameters:
inName - New name of the resource. Cannot be null.

setTimeTable

public void setTimeTable(TimeTable inTimeTable)
Change the TimeTable for this resource.

Parameters:
inTimeTable - TimeTable for this resource. Cannot be null.