init: initial commit

This commit is contained in:
Assasinnys 2020-05-11 16:11:48 +03:00
parent ef739464b8
commit c769ef6b61
2 changed files with 9 additions and 5 deletions

View File

@ -180,7 +180,7 @@ fun calcTime(timeStart: Long): Double = System.currentTimeMillis().minus(timeSta
}*/
//TODO alternative MAIN with work in file
/*fun main(args: Array<String>) {
fun main(args: Array<String>) {
println("Start A Star with file table")
val time = System.currentTimeMillis()
@ -190,10 +190,10 @@ fun calcTime(timeStart: Long): Double = System.currentTimeMillis().minus(timeSta
aStar.activateAStarAlgorithm()
println("Complete with time: ${calcTime(time)}")
}*/
}
//TODO MAIN METHOD
fun main(args: Array<String>) {
/*fun main(args: Array<String>) {
println("Start!")
val timeStartProgram = System.currentTimeMillis()
@ -204,7 +204,7 @@ fun main(args: Array<String>) {
algorithm.activateAStarAlgorithm()
println("Work complete. Time spent ${calcTime(timeStartProgram)}")
}
}*/
// systems
const val SOL = "Sol"

View File

@ -18,6 +18,7 @@ import java.sql.ResultSet
//TODO check neighbors StarPoint's for better way (lower cost) [ready 50%]
class AStarMain(private val startSystem: String, private val finishSystem: String) {
/*
private val database = Database()
private val finishStarPoint: StarPoint = createFinishStarPoint()
private val startStarPoint: StarPoint = createStartStarPoint()
@ -33,7 +34,9 @@ class AStarMain(private val startSystem: String, private val finishSystem: Strin
// println("finishStarPoint=${finishStarPoint.systemId64}")
}
fun activateAStarAlgorithm()/*: Pair<Int, Int>*/ {
fun activateAStarAlgorithm()*/
/*: Pair<Int, Int>*//*
{
findNeighbours(startStarPoint)
@ -230,6 +233,7 @@ class AStarMain(private val startSystem: String, private val finishSystem: Strin
val id64: Long,
val coords: Coordinates
)
*/
companion object {
const val CORRIDOR = "coridor3"