Package hec.lang
Interface LockableObject
- All Superinterfaces:
rma.lang.Modifiable
- All Known Implementing Classes:
AbstractSimulation,GVDataSet,ImportNetworkWorkspace,Manager,ManagerProxyListManager,ModelAlt,ModelForecastAlt,ModelManager,Operations,PDCDataSet,ReportIntervalManager,RssAlt,RssRun,RssSimRun,RssSimTrialRun,RssSystem,SimulationPeriod,SimulationRun,SimulationTrialRun,StreamAlignment,TSDataSet,XMLManager
public interface LockableObject
extends rma.lang.Modifiable
-
Method Summary
Methods inherited from interface rma.lang.Modifiable
isModified, setModified
-
Method Details
-
setLocked
boolean setLocked(int lockType) lock or unlock this object- Parameters:
lockType- = FileLock.NO_LOCK (to unlock), FileLock.READ_LOCK or FileLock.WRITE_LOCK- See Also:
-
hasLock
int hasLock()see if this object has it's lock.- Returns:
- FileLock.NO_LOCK, FileLock.READ_LOCK, FileLock.WRITE_LOCK
-