Package jadex.model.impl
Class CacheableKernelModel
java.lang.Object
jadex.model.impl.CacheableKernelModel
- All Implemented Interfaces:
ICacheableModel
Base class for cacheable kernel model.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected long
The last check date.protected long
The last modified date.protected IModelInfo
The model info. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the filename.long
Get the lastchecked.long
Get the lastmodified.Get the modelinfo.void
setLastChecked
(long lastchecked) Set the lastchecked.void
setLastModified
(long lastmodified) Set the lastmodified.
-
Field Details
-
lastmodified
protected long lastmodifiedThe last modified date. -
lastchecked
protected long lastcheckedThe last check date. -
modelinfo
The model info.
-
-
Constructor Details
-
CacheableKernelModel
Create a new model.
-
-
Method Details
-
getModelInfo
Get the modelinfo.- Returns:
- the modelinfo.
-
getLastModified
public long getLastModified()Get the lastmodified.- Specified by:
getLastModified
in interfaceICacheableModel
- Returns:
- the lastmodified.
-
setLastModified
public void setLastModified(long lastmodified) Set the lastmodified.- Parameters:
lastmodified
- The lastmodified to set.
-
getLastChecked
public long getLastChecked()Get the lastchecked.- Specified by:
getLastChecked
in interfaceICacheableModel
- Returns:
- the lastchecked.
-
setLastChecked
public void setLastChecked(long lastchecked) Set the lastchecked.- Specified by:
setLastChecked
in interfaceICacheableModel
- Parameters:
lastchecked
- The lastchecked to set.
-
getFilename
Get the filename.- Specified by:
getFilename
in interfaceICacheableModel
- Returns:
- The filename.
-