📄 updatepolicy.java
字号:
package SOMA.security.infrastructure.updatePolicy;
public abstract class UpdatePolicy {
// Sleeping Time in milli second
protected long SleepTime = 90000;
protected boolean localControl = true;
public String updatePolicy = "Abstract Update Policy";
public UpdatePolicy ( String msg )
{
this.updatePolicy = msg;
}
public boolean update ()
{
return true;
}
/** this value is setting into a class
* and the developer must chose if it
* can changed at runtime.
* If is true the place contact the
* server at one time.
*/
public boolean getLocalControl ()
{
return localControl;
}
public String toString ()
{
return updatePolicy;
}
public long getSleepTime ()
{
return SleepTime;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -