2023-11-19 02:12:44 +03:00
|
|
|
package TestingSystem.SAPFOR.ServerSapfor;
|
2024-05-07 01:06:47 +03:00
|
|
|
import Common.Database.DBObject;
|
2023-11-16 22:11:58 +03:00
|
|
|
import Common.Database.riDBObject;
|
2023-10-03 15:07:17 +03:00
|
|
|
import Common.Utils.Utils;
|
|
|
|
|
import ProjectData.LanguageName;
|
|
|
|
|
import com.sun.org.glassfish.gmbal.Description;
|
|
|
|
|
|
|
|
|
|
import java.util.Date;
|
2023-11-16 22:11:58 +03:00
|
|
|
public class ServerSapfor extends riDBObject {
|
2023-10-03 15:07:17 +03:00
|
|
|
//--------------------------------------------------------------------->>>
|
|
|
|
|
@Description("IGNORE")
|
|
|
|
|
public static String version_command = "-ver";//команда запроса версии компилятора.
|
|
|
|
|
@Description("IGNORE")
|
|
|
|
|
public static String help_command = "-help";// команда запроса help
|
|
|
|
|
//--------------------------------------------------------------------->>>
|
|
|
|
|
public LanguageName languageName = LanguageName.fortran;
|
|
|
|
|
public String home_path = ""; //домашняя папка.
|
|
|
|
|
public String call_command = ""; //полная команда вызова.
|
|
|
|
|
public String version = "?";
|
|
|
|
|
public long buildDate = 0;
|
2024-05-06 00:47:29 +03:00
|
|
|
@Description("DEFAULT 'Done'")
|
|
|
|
|
public ServerSapforState state = ServerSapforState.Done;
|
2023-10-03 15:07:17 +03:00
|
|
|
public Date getBuildDate() {
|
|
|
|
|
return new Date(buildDate);
|
|
|
|
|
}
|
|
|
|
|
//--
|
|
|
|
|
public ServerSapfor() {
|
|
|
|
|
}
|
2024-05-07 01:06:47 +03:00
|
|
|
public ServerSapfor(ServerSapfor s) {
|
|
|
|
|
SynchronizeFields(s);
|
|
|
|
|
}
|
|
|
|
|
@Override
|
|
|
|
|
public void SynchronizeFields(DBObject src) {
|
|
|
|
|
super.SynchronizeFields(src);
|
|
|
|
|
ServerSapfor s = (ServerSapfor) src;
|
|
|
|
|
languageName = s.languageName;
|
|
|
|
|
home_path = s.home_path;
|
|
|
|
|
call_command = s.call_command;
|
|
|
|
|
version = s.version;
|
|
|
|
|
buildDate = s.buildDate;
|
|
|
|
|
state = s.state;
|
|
|
|
|
}
|
2023-10-03 15:07:17 +03:00
|
|
|
@Override
|
|
|
|
|
public String toString() {
|
|
|
|
|
return call_command;
|
|
|
|
|
}
|
|
|
|
|
public String getVersionCommand() {
|
|
|
|
|
return Utils.DQuotes(call_command) + " " + version_command;
|
|
|
|
|
}
|
|
|
|
|
}
|