Class FilePathUtils


  • public class FilePathUtils
    extends java.lang.Object
    Author:
    Michael Weiss
    • Field Detail

      • FOLDER

        public static java.io.File FOLDER
        Determines where the files will be stored.
        Important, if you want to change this
    • Method Detail

      • bidderFilePath

        public java.io.File bidderFilePath​(long worldId,
                                           long populationId,
                                           long bidderId)
      • populationFolderPath

        public java.io.File populationFolderPath​(long worldId,
                                                 long populationId)
      • worldFolderPath

        public java.io.File worldFolderPath​(long worldId)
      • worldFilePath

        public java.io.File worldFilePath​(long worldId)
      • getPopulationIds

        public java.util.Collection<java.lang.Long> getPopulationIds​(long worldId)
      • getBidderIds

        public java.util.Collection<java.lang.Long> getBidderIds​(long worldId,
                                                                 long populationId)
      • readFileToString

        public java.lang.String readFileToString​(java.io.File file)
      • writeStringToFile

        public void writeStringToFile​(java.io.File file,
                                      java.lang.String content)