Summary of the invention
In view of the foregoing deficiencies of prior art, the purpose of the present invention is to provide a kind of railroad train operation realization sides
Method, for solving the problems, such as that Logistics Simulation Software realizes railway transporting operation poor universality and the practicability is poor.
In order to achieve the above objects and other related objects, the present invention provides a kind of railroad train based on Logistics Simulation Software
Operation implementation method, comprising:
Obtain movable signal, retention signal and the information carrying signal of railroad train;
According to the movable signal, the retention signal and the information carrying signal, task sequence is created, record is appointed
Business sequence object, task sequence subtask;
Execute task sequence;
Judge whether the task sequence is all finished, if it is not, then executing the task sequence subtask;
Judge the task type of the task sequence subtask, the task sequence subtask type includes mobile appoints
Business waits task and information transmission tasks;
It is the execution mobile task, described after completing the step of judge the task type of the task sequence subtask
Waiting task or the information transmission tasks.
Optionally, the step of executing the mobile task, the waiting task or the information transmission tasks is completed
Afterwards, judge whether the task sequence is all finished.
Optionally, the step of whether task sequence is all finished judged further include: if the task sequence is complete
Portion is finished, more new state, and deletes the task sequence.
Optionally, creation task sequence includes: creation task sequence function, creates task sequence object function, records vehicle
Object, control machine object and subtask information.
Optionally, creation task sequence includes: to create mobile mission function, creates mobile task object function, and record moves
Dynamic object, dynamic routing information.
Optionally, creation task sequence includes: that creation waits function, records waiting time information.Optionally, task is created
Sequence includes: creation Message function, and record receives message object, sends message object, message parameter 1, message parameter 2, message
Parameter 3, message delay times.
Optionally, create task sequence when, Flexsim Calling nodeinsertinto function,
Setnodename function, setnodenum function.
Optionally, it when executing task sequence, calls and executes task sequence function, in Flexsim Calling
Getnodenum function, setnodenum function execute the beginning move function called in task sequence function and stop movement
Function, Flexsim Calling bcsetitemconveystate function, bcgetitemposition function,
Bcsetdirection function.
Optionally, it executes the execution called in task sequence function to wait function and execute Message function, in Flexsim journey
Senddelayedmessage function is called in sequence.
Upper described, the of the invention railroad train operation implementation method, has the advantages that
All car team correlation operations are abstracted as mobile, stop, information three kinds of most basic operations of transmitting, for movement, are stopped
Stay, information transmitting is controlled and is exported, realize and coordinate and control the purposes of multiple objects, be more bonded, mention with actual conditions
The high applicability and application range of the railroad train operation implementation method based on Logistics Simulation Software.
Specific embodiment
Illustrate embodiments of the present invention below by way of specific specific example, those skilled in the art can be by this specification
Other advantages and efficacy of the present invention can be easily understood for disclosed content.The present invention can also pass through in addition different specific realities
The mode of applying is embodied or practiced, the various details in this specification can also based on different viewpoints and application, without departing from
Various modifications or alterations are carried out under spirit of the invention.
Fig. 1 is please referred to Fig. 9.It should be noted that diagram provided in the present embodiment only illustrates this in a schematic way
The basic conception of invention, only show in schema with related component in the present invention rather than component count when according to actual implementation,
Shape and size are drawn, when actual implementation kenel, quantity and the ratio of each component can arbitrarily change for one kind, and its component
Being laid out kenel may also be increasingly complex.This specification structure depicted in this specification institute accompanying drawings, ratio, size etc., only to cooperate
The revealed content of specification is not intended to limit the invention enforceable so that those skilled in the art understands and reads
Qualifications, therefore do not have technical essential meaning, the modification of any structure, the change of proportionate relationship or the adjustment of size,
It does not influence still fall in disclosed technology contents under the effect of present invention can be generated and the purpose that can reach
It obtains in the range of capable of covering.Meanwhile cited such as "upper", "lower", "left", "right", " centre " and " one " in this specification
Term, be merely convenient to being illustrated for narration, rather than to limit the scope of the invention, the change of relativeness or
Adjustment, under the content of no substantial changes in technology, when being also considered as the enforceable scope of the present invention.
Fig. 1 and Fig. 2 are please referred to, the present invention provides a kind of railroad train operation implementation method, comprising:
Obtain movable signal, retention signal and the information carrying signal of railroad train;
According to the movable signal, the retention signal and the information carrying signal, task sequence is created, record is appointed
Business sequence object, subtask;
Execute task sequence;
It executes in task sequence, need to judge whether the task sequence is all finished, if it is not, then executing the task
Sequence subtask;
It executes in task sequence, need to judge the task type of the task sequence subtask, the subtask type packet
Include mobile task, waiting task and information transmission tasks;
It executes in task sequence, after completing the step of judging the task type of the task sequence object, described in execution
Mobile task, the waiting task or the information transmission tasks.In railway transportation logistics system, train (car team) operation
Including entering the station, solving volume, group volume, internal forwarding, unloading, loading, leaving from station etc., different Railway Logistics Gardens, different enterprises, technique is not
Together, but have in common that all trains (car team) operation is all to carry out unification to multiple standalone objects (vehicle adjusts machine, one's own job machine)
Control, and inherent function is to control single object in Logistics Simulation Software, is not inconsistent with train overall operation, therefore in logistics simulation
Realize that train transport emulation needs secondary development in software.The railroad train operation implementation method that this programme provides is to railway transportation side
Formula is applied to cargo transport (such as railway transportation container, railway transportation car, railway transportation coil of strip, railway transportation molten iron
Deng) scene carry out process flow combing, analysis similarities and differences, by all car team correlation operations be abstracted as it is mobile, stop, information passes
Three kinds of most basic operations are passed, is controlled for movement, stop, information transmitting, is realized while coordinating and controlling multiple objects to exist
Train transport emulation is realized in Logistics Simulation Software.
Preferably, executing in task sequence, complete to execute the mobile task, the waiting task or the information
After the step of transmission tasks, judge whether the task sequence is all finished, judges whether the task sequence is all held
The step of row finishes further include: if the task sequence is all finished, more new state, and delete the task sequence.
In one embodiment, based on BasicConveyor simulating railway line in Logistics Simulation Software Flexsim
Railway logistics transportation emulates its operational method.
Fig. 3 and Fig. 6 are please referred to, the creation task sequence includes creation task sequence function and creation task sequence object
Function, as shown in figure 3, record train (or car team) job task information, including task Vehicle Object, control machine (adjust machine or sheet
Business machine).In Flexsim, customized creation task sequence function and creation task sequence object function are by calling repeatedly
The softwares Embedding function such as nodeinsertinto, setnodename, setnodenum realizes that Fig. 6 is created in Flexsim
Task sequence.
Fig. 4 and Fig. 7 are please referred to, the creation task sequence includes creating mobile mission function and the mobile task object of creation
Function: the system of solutions, which compiles operation, tune machine and draws car team to unloading line, one's own job machine travel car team from loading line, to enter the station or leaving from station etc. is all
Train or car team integrally move in railway line road network.On the basis of having created task sequence, calls and create mobile task
Function and the mobile task object function of creation can record the mobile message of train (or car team) in railway line road network: mobile pair
As, movement routine.In Flexsim, the mobile mission function of customized creation and the mobile task object function of creation are by anti-
Polyphony realizes that Fig. 7 is in Flexsim with the softwares Embedding function such as nodeinsertinto, setnodename, setnodenum
Mobile task is inserted on the basis of having created task sequence.
Fig. 5 and Fig. 8 are please referred to, the creation task sequence includes that creation waits function: break off relations, link up with, being checked before unloading,
The techniques such as inspection are simulated, i.e. train or car team etc. in simulation model with the section time is waited before checking, dispatch a car before handling goods
Just start next step operation after the corresponding activity duration.Fig. 5 calls creation waiting task on the basis of having created task sequence
Function can record train (or car team) waiting time, by unhook in functional simulation railway logistics transportation emulation, links up with, puts
The operations such as inspection before stirrup strap, handling goods.In Flexsim, it is by calling repeatedly that customized creation, which waits mission function,
The softwares Embedding function such as nodeinsertinto, setnodename, setnodenum realizes that Fig. 8 is being created in Flexsim
It builds and is inserted into waiting task on the basis of task sequence.
Fig. 2 and Fig. 9 are please referred to, the creation task sequence includes creation Message function: each operation ring in actual job
Message passing mechanism can be used in simulation model to realize different works by network transmission or manual delivery information between section
Mutual scheduling between skill, for example dispatching control center notice train is sent messages to after checking before dispatching a car and (wait task)
Can (mobile task) leaving from station etc., as shown in Fig. 2, calling creation message task function on the basis of having created task sequence
Realize the information transmitting in simulation model between different objects.In Flexsim, it is to pass through that customized creation, which waits mission function,
The softwares Embedding functions such as nodeinsertinto, setnodename, setnodenum are called to realize that Fig. 9 is Flexsim repeatedly
In message task is inserted on the basis of having created task sequence.
Shown execution task sequence includes executing task sequence function, executing mobile mission function, stop mobile task letter
Number executes waiting task, executes message task: after task sequence creates, calling task sequence to execute function and promotes train
Or car team completes all subtasks in task sequence, realizes the operations such as system of solutions volume, dislodging hook, inspection.Fig. 2 is task execution function
Logic chart executes task sequence and realizes that technology is as follows in Flexsim:
Customized execution task sequence function is by being called in the softwares such as setnodenum, destroyobject repeatedly
Embedding function is realized.
The mobile mission function of customized execution and the mobile mission function of stopping are by calling repeatedly
The softwares Embedding function such as bcsetitemconveystate, bcgetitemposition, bcsetdirection is realized.
It is by calling software Embedding function that customized execution, which waits mission function and executes message task,
Senddelayedmessage is realized.
The above-described embodiments merely illustrate the principles and effects of the present invention, and is not intended to limit the present invention.It is any ripe
The personage for knowing this technology all without departing from the spirit and scope of the present invention, carries out modifications and changes to above-described embodiment.Cause
This, institute is complete without departing from the spirit and technical ideas disclosed in the present invention by those of ordinary skill in the art such as
At all equivalent modifications or change, should be covered by the claims of the present invention.