Skip to content

SthMax/Fluid_Logistics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Readme

Fluid Logitics Project Codes\

Project Structure

Generators

  1. Map Generator:
    Generating X * Y MAP with randomly numbered X * Y * P ( P < 1 ) Blocks scattered into MAP

    Input:
      Dimension: X,Y as INT
            X & Y is the size of horizontal and vertical size of tileMap, the total size of map will be (X+2), (Y+2)
      Block Density: P as FLOAT

    Tentative Input:
      Scatter Function (Not Implemented)

    Output:
      XY Array with numbered blocks from 1 to XY*P, 0 is empty block

  2. Channel Generator
    Generating N Channels around a X*Y Array, can be specified locations.

    Input:
      MAP: X * Y Array
      Channel Numbers: N as INT, N < 2 * (X+Y)
      Specified Locations:
        {"N/A","TLT","TTT","TRT","N/A"};
        {"TLL","N/A","N/A","N/A","TRR"};
        {"MLL","N/A","N/A","N/A","MRR"};
        {"DLL","N/A","N/A","N/A","DRR"};
        {"N/A","DLD","DDD","DRD","N/A"};
        as string array

    Tentative Input:
      Outbound Channel / Inbound Channel

    Output:
      (X+2) * (Y+2) Array with numbered blocks from 1 to X * Y * P:   0 is empty block, -1 is Inbound Channel, -2 is Outbound Channel, -3 is Wall

Algorithms

  1. Runner
    Generating a Channeled MAP and then Running Mapping Algorithm in a single thread

    Input:
      X,Y,P,N and Specified Locations
      Algorithm: Specified Algorithm
      Target MAP: (X) * (Y) Array

    Output:
      Total Steps and Running Time if runnable, -1 if not runnable

  2. Algorithms
    Will be plugged into runner to run, maintaining in a single file

Management

  1. Manager
    Generating Muliple Runners in multiple threads and collecting datas, then Plot the data.

    Input:
      X,Y,P,N and Specified Locations
      Algorithm: Specified Algorithm
      Target MAP: (X) * (Y) Array

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors