Package jadex.kernelbase
Class CacheableKernelModel
- java.lang.Object
-
- jadex.kernelbase.CacheableKernelModel
-
- All Implemented Interfaces:
ICacheableModel
- Direct Known Subclasses:
MicroModel
public class CacheableKernelModel extends java.lang.Object implements ICacheableModel
Base class for cacheable kernel model.
-
-
Field Summary
Fields Modifier and Type Field Description protected longlastcheckedThe last check date.protected longlastmodifiedThe last modified date.protected IModelInfomodelinfoThe model info.
-
Constructor Summary
Constructors Constructor Description CacheableKernelModel(IModelInfo modelinfo)Create a new model.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetFilename()Get the filename.longgetLastChecked()Get the lastchecked.longgetLastModified()Get the lastmodified.IModelInfogetModelInfo()Get the modelinfo.voidsetLastChecked(long lastchecked)Set the lastchecked.voidsetLastModified(long lastmodified)Set the lastmodified.
-
-
-
Field Detail
-
lastmodified
protected long lastmodified
The last modified date.
-
lastchecked
protected long lastchecked
The last check date.
-
modelinfo
protected IModelInfo modelinfo
The model info.
-
-
Constructor Detail
-
CacheableKernelModel
public CacheableKernelModel(IModelInfo modelinfo)
Create a new model.
-
-
Method Detail
-
getModelInfo
public IModelInfo getModelInfo()
Get the modelinfo.- Returns:
- the modelinfo.
-
getLastModified
public long getLastModified()
Get the lastmodified.- Specified by:
getLastModifiedin 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:
getLastCheckedin interfaceICacheableModel- Returns:
- the lastchecked.
-
setLastChecked
public void setLastChecked(long lastchecked)
Set the lastchecked.- Specified by:
setLastCheckedin interfaceICacheableModel- Parameters:
lastchecked- The lastchecked to set.
-
getFilename
public java.lang.String getFilename()
Get the filename.- Specified by:
getFilenamein interfaceICacheableModel- Returns:
- The filename.
-
-