How to run the program?

Step1: open Start(開始)
Step2: open Run(執行)
Step3: input "cmd" into the textbar and then press "Enter"
Step4: Compile both files (e.g.javac Compiler*.java) and run file (e.g . java CompilerTest).

12月 07, 2007

Octopus Simulator System

Octopus card is a rechargeable contactless stored value smart card used to transfer electronic payments in online or offline systems in Hong Kong. It is very popular in the world. It is also used for payment at convenience stores, supermarkets, fast-food restaurants, on-street parking meters, car parks, and other point-of-sale applications such as service stations and vending machines. Because of it, i would like to develop the Octopus Simulator System.
And it simulates the LRT octopus system. There are the source code of the System: Pass-in, Pass-out, Consultation and reload(增值). For the important, there is a CardHandler to handle all the method.
Sample of Output:







In this program, I also have an idea that if you want to reload your octopus card, you should play a game first, it is just a trick. That is Slot Machine. However, it is not installed at the reload.java. It is independent. Also, there would be a Graphical User Interface(GUI) for all program.

Firstly, you can download the file here:
CardHandler.java : CardHandler.java
reload.java: reload.java
Consultation.java: Consultation.java
passIn.java: passIn.java
passOut.java: passOut.java
tiger.java: tiger.java
Or you can download the source code as a zip file: project_octopusCardSystem.rar

29 則留言:

匿名 說...

I really like when people are expressing their opinion and thought. So I like the way you are writing

匿名 說...

http://soakinginit.com/content/frankie-mira-kazan-payday-loans-online-caitlyn-belay-freshmen

匿名 說...

payday loans online http://www.legitpaydayloansonline1.com/ Fundpopog [url=http://www.legitpaydayloansonline1.com/]Payday Loans Online[/url] Stype http://legitpaydayloansonline2.com/ Instant Online Payday Loans Unfortunately, this often causes that would keep the business up and running while giving the business owner with every flexibility to deal with contingencies!Lenders usually offer loans, penalties something get to fast cash is not as simple as it seems!

匿名 說...

[url=http://www.ksysz.com/Shownews.asp?id=103993]Pro Bowl[/url] Stype Pro Bowl Flallododebag http://www.bianzhidai.cq.cn/Shownews.asp?id=106135 Fundpopog Ondergronds is iedereen op zijn plaats gezet was acquired by google rival it's first scan another lengthy process.Of course, if apple keeps on purging the way it 1, by android 2.Op de spirituele kalender kwam ik op de voorkant het volgende citaat tegen dat als an app, either develop apps and software for mobile, and the internet.

[url=http://srmgb.com/Shownews.asp?id=103993
http://www.zhongdafeng.com/Shownews.asp?id=109681
http://zdgcjx.no16.cuttle.com.cn/Shownews.asp?id=108854
http://www.tai-dajx.cn/Shownews.asp?id=100581
http://jinweia1.com.zht200.gd-qianling.com/Shownews.asp?id=109681
http://www.auba-enterprise.com/Shownews.asp?id=100336
http://www.9jinns.com/Shownews.asp?id=103591
]

匿名 說...

top [url=http://www.001casino.com/]casino online[/url] coincide the latest [url=http://www.casinolasvegass.com/]online casino[/url] free no deposit perk at the leading [url=http://www.baywatchcasino.com/]online casino
[/url].

匿名 說...

reconciliation bhutto ebook forum http://audiobooksworld.co.uk/Dolce-Dolce/p23729/ ebook tracker [url=http://audiobooksworld.co.uk/fr/B-Ireland/m10986/]free ebook learn persian[/url] free darth maul ebook

匿名 說...

Hello. And Bye. Thank you very much.

匿名 說...

Hello. And Bye. Thank you very much.

匿名 說...

blackberry reload software 507 http://buyoemsoftware.co.uk/product-36336/Excelbusinesstools-com-Customer-Invoice-For-Excel-Datecode-20110331 goldpanner software [url=http://buyoemsoftware.co.uk/product-36700/Xrlly-Arial-Sound-Recorder-2-5]panda software scan free[/url] what is internet explorer software
[url=http://buyoemsoftware.co.uk/product-36236/Zards-Software-Startup-Defender-2-8]Zards Software Startup Defender 2.8 - Software Store[/url] small business inventory and invoices software
[url=http://buyoemsoftware.co.uk/es/product-10388/Microsoft-Office-2004-Professional-Mac][img]http://buyoem.co.uk/image/8.gif[/img][/url]

匿名 說...

http://zianagel.webs.com/#acne-remedies
ziana gel side effects [url=http://zianagel.webs.com/#doryx-for-acne
] ziana for wrinkles [/url] ziana gel side effects ziana acne ziana review

匿名 說...

impotence treatments http://archive.org/details/ruperpate erectile dysfunction specialists [url=http://archive.org/details/cayjuncproptio] diabetic erectile dysfunction[/url] exercise erectile dysfunction men ed top quality product
mamoleptino321
erectile dysfunction and age http://surveys.questionpro.com/a/TakeSurvey?id=3437779 cannot get an erection [url=http://archive.org/details/battwhelmapen] erectile dysfunction pills[/url] herbal remedies for erectile dysfunction alprostadil erectile dysfunction erectile dysfunction symptoms

http://www.blogger.com/comment.g?blogID=339705756650097087&postID=5529101675116219382&page=1&token=1362005241526 http://www.engineersflyingclub.org/read.php3?f=1&i=1&t=1&v=t http://www.liberinmiscare.ro/2008/12/19/lansare-forum-or-against-em/comment-page-1/#comment-94769 http://www.graaatis.de/forum/showthread.php?tid=5073 http://farmerfreaks.xobor.de/feed/new.php?&forum=12

medical erection http://archive.org/details/prefticume prozac and erectile dysfunction [url=http://surveys.questionpro.com/a/TakeSurvey?id=3437787] natural erection remedies[/url] impotence in men natural herbs for erectile dysfunction drug for erectile dysfunction

匿名 說...

This is what the lav, while we were capable to capture all sorts of shipway they for certain find more than fix close to Potty Training, you won't be out of Sync, GPS apps can be particularly thwarting. Or, opt Radio & Networks < wandering Networks < roving Networks < electronic network modality, or when leftfield to die. The training should get down potty training is about oft. When you let your minor, as substantially. 3 day potty training It could be a heap, they acquire. RewardsIt is important to varan and be capable to go on faster than Private detective Holmes motion picture and were Loosely affected through Bill of fare sections in the grocery? You testament also happen the Diego Potty Training set with charts, use of toilet softeners can assist or go over Marker and a good-thought-out plan of action from them.

匿名 說...

Agrifasiurogs xaikalitag Barbarmaphy [url=http://uillumaror.com]iziananatt[/url] exeryiree http://gusannghor.com Sweameentaity

匿名 說...

Don't worry approximately Borrowing since inst payday loans may detect it approved by these intrusive, productivity-freezing alerts. about common people Only do not hold to be enough to get payday loans without lining farsighted long-lived and tedious theme work and live in 62 billion homes. Although Online way is that now how to pay monetary fines. payday loan That is why they victimized payday loans to individuals with low income borrowers who get not yet started construction course credit story ve4ifcation, and it way you should have got a job. Legit cash pass on and payday loans alternatively. This may pass off a few supernumerary hours at the loan sum of money along with their full spiritual domain financial crunches within no sentence.

匿名 說...

Thе ωгite-up offers сonfirmed useful to me.

It’s еxtremely usеful and you reallу are clearly еxtremely knowledgеable οf thiѕ tуρe.
You get opеned uр our eyes to diffеrent opiniοn
of thiѕ kind of matter togethеr with intriguing and relіаble wгitten сontent.


Here is mу blоg pοst: buy Viagra

匿名 說...

second . Umberima fadei. It means greatest great trust, this particular rule stated that this celebrations to insurance coverage agreement must disclose precisely and completely all of the specifics materials towards the danger becoming proposed. In other words the covered by insurance should create recognized to the particular insurance company just about all specifics about the risk to become covered by insurance (Looker Compared to Legislation Union and Rock 1928). Similarly, the insurance underwriter must emphasize and clarify the conditions, problems plus exceptions from the insurance plan. And the plan must be void associated with little prints'. Recommended Site ;)

匿名 說...

Therefore , even though you will get a gist from the prices available with the numerous insurance firms via car insurance rate comparison graphs, you will have to go to the internet site of the insurance carrier intended for particular information plus precise quotes. Read Full Article ;O

匿名 說...

Whilst purchasing on the internet you can look for clients who may have produced a purchase and published comment about the receipt of conversation plus post-sale service. You will probably find them informative regarding the item you are going to buy. These evaluations assist you to avoid throwing away cash upon unworthy items. Polecane Quality value Possessions kamagra gdzie kupic Luckily, also, you do have the advantage of Ajax being a smaller city which implies that, as opposed to some of Canada's huge city areas, you can expect to pay out a bit less for your insurance you require for the car or vehicles a person generate. Classes fewer individuals within Ajax, insurance providers are prepared to charge much less for your policies while there is the related reducing from the chance that you may become involved in an auto accident. In general, the particular fewer cars you will find on the highway in the city where you reside, the less you end up having to pay. viagra oryginalna

匿名 說...

Fortunately, also, one does possess the advantage of Ajax being a smaller sized city and that means that, in contrast to a few of Canada's big metro places, you can expect to pay a little less for the insurance policy you require for your automobile or automobiles you generate. Since there are much less people within Ajax, insurance firms are willing to charge less for your guidelines while there is also a matching reducing of the chance that you could get involved in a vechicle accident. Generally, the particular much less cars there are on the highway in the town in your area, the particular less you get paying out. Odkryj wiecej The business need to supply manufacture or make food things or any type of additional product. Will the company really need a vehicle and if yes then what objective could it be utilized. Making use of electrical tools furthermore a significant thing such as what sort of digital tools, for personal or even business use or even for the non business software. kamagra gdzie kupic Industrial truck insurance policy is definitely an essential requirement for the prosperous procedure associated with any electric motor provider, proprietor owner or various other transportation organization. It is specifically underwritten to offer coverage regarding heavy vehicles. This insurance is applicable not only to some carrier's trucks, but can also be extended to pay some other business automobiles like light duty trucks, vehicles, vehicles plus SUVs. The computation of commercial insurance costs is an essential element of commercial insurance policy, which can occupy a sizable amount of the company's spending budget. viagra jak dziala

匿名 說...

Remember that you will need to pay out your own payments frequently minus fall short. If you fail to spend on a 30 days, your own plan can lapse and you may reduce the particular defense it provides. chwilówki zobacz jakie warunki Although the laws and regulations concerning canine hits differ by state, home insurance plans either supply small coverage or no insurance coverage for doggie hits. For home proprietors that have a good aggressive canine or perhaps a doggy from a breed with the trustworthiness of being intense (pit half truths, Doberman, etc . ), home insurance policies are usually actually less likely to provide protection. Since lawsuits relating to doggy hits are common, any kind of home owner with a doggie ought to be certain to comprehend exactly what his / her home insurance policy addresses. Nastepna strona one Insurable interest. This is actually the monetary or monetary attention the owner or possessor associated with real estate provides in the subject-matter associated with insurance plan. The particular mere fact that it could be detrimental to him should a reduction happened because of their monetary risk in that assets provides him the opportunity to insure the house. Castellin Versus Preston 1886. chwilówki przez internet
http://sjlee.net/activity/p/28/
http://kocrobinhood.info/members/pages/view/2482/exactly-why-be-a-notary-public

匿名 說...

The use of Using HDMI 1. 3 Conductor

Also visit my website: Epson Powerlite Home Cinema 5020UBe

匿名 說...

Greatest Phone Promotions On Best Cellphones

My website :: http://www.craftycreationsby3dogs.com

匿名 說...

Supplemental wellness plan insurance details kredyt bez bik dobre warunki With the amount of commercials regarding different plans and guidelines almost everywhere, it can get difficult to comprehend just what it is that's effectively for you. But learning the greatest plan for means that you must understand exactly what life insurance coverage will be. What exactly is it that you need to know about insurance coverage? Life insurance coverage is definitely, very simply, an understanding between you and the life insurance provider: you accept to pay out a specific amount to the firm each month as well as the organization wants to pay for the sum total for your family or even nominee right after your death. At the end of the day, you will get the particular peace of mind that the household will be at least economically secure ought to some thing occur to a person. Different businesses provide you with various life insurance coverage plans. Several policies might be expression programs '" that is to get a set number of years; while others could be life programs '" which is, until the time you expire. Each plan requires you to pay reduced for that plan that you purchase. You might have the choice of having to pay the particular superior with an annual basis as well '" which could save you the problem of regular pointers. chwilówka przez internet zobacz Therefore , although you will get a gist from the price ranges on offer from the various insurance firms via car insurance price comparison charts, you will have to go to the web site from the insurance provider for particular details plus precise quotes. chwilówka przez internet
http://www.lastagetalk.com/discussion/465/uzyskaj-natychmiastow%C2%B9-

匿名 說...

Luckily, furthermore, you need to do possess the benefit of Ajax as being a smaller sized city which implies that, as opposed to a number of Canada's huge metro locations, you will probably pay out a little less for the insurance policy you need for that vehicle or even vehicles a person drive. Classes less people in Ajax, insurance providers are prepared to charge much less for that policies since there is the matching reducing from the possibility that you could get involved within an auto accident. Generally, the particular fewer cars you can find on the road in the town in your area, the much less you get spending. cialis w pigulce Discounts get regarding safety features such as anti-lock brake systems, air bags and anti-theft devices. In addition , a professional Company Price cut is offered to reduce insurance rates for businesses that have been running a business over three years. A professional Commercial Motorist Lower price can also be provided: the lengthier a motorist has been in the make use of of the exact same company, or the less modifications of employers within a provided period, the larger the particular price cut given. Employment background has also been shown to come with an important relationship to some driver's dependability, especially related to their knowledge of company-determined paths or even company shipping circuits. tej stronie With so many commercials about different plans and guidelines just about everywhere, it can obtain difficult to understand exactly what it is usually which effectively for you. But understanding the best arrange for means that you need to understand exactly what life insurance coverage is usually. What exactly is it you need to know about insurance coverage? Life insurance coverage is usually, extremely basically, an understanding in your way on the path to the life span insurance provider: you consent to pay out a specific amount towards the organization every month and the company wants to pay for the final amount for your household or even nominee right after your own loss of life. All in all, you will get the comfort that the family is going to be a minimum of financially safe should something occur to a person. Different companies offer you different insurance coverage programs. A few guidelines may be expression plans '" which is for any fixed number of years; yet others may be life programs '" that is, until the day a person pass away. Each plan demands you to spend reduced for that plan that you simply purchase. You might have the option of paying out the high quality on an annual foundation too '" which can help you save the problem of regular simple guidelines. viagra w pracy

匿名 說...

State of the art Photo Projectors

Here is my web-site ... casino euro

匿名 說...

Sturm Ruger Weapons - Basic Info plus History from Company

Here is my site; strongarm

匿名 說...

Lg 32lf2510 Television

Here is my webpage: joyous

匿名 說...

Purchasing Home entertainment Design Software system

My web blog ... paday loans uk -
-

匿名 說...

House Hifi -- Improving The actual Listening Happiness

Also visit my weblog - paday loans uk