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 long
lastchecked
The last check date.protected long
lastmodified
The last modified date.protected IModelInfo
modelinfo
The 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.String
getFilename()
Get the filename.long
getLastChecked()
Get the lastchecked.long
getLastModified()
Get the lastmodified.IModelInfo
getModelInfo()
Get the modelinfo.void
setLastChecked(long lastchecked)
Set the lastchecked.void
setLastModified(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:
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
public java.lang.String getFilename()
Get the filename.- Specified by:
getFilename
in interfaceICacheableModel
- Returns:
- The filename.
-
-