Professional Documents
Culture Documents
1.1 Overview: Purpose
1.1 Overview: Purpose
CHAPTER I
INTRODUCTION
1.1 OVERVIEW
This project emphasizes about the Foreign Trade System which is an Interface
between the Account holder and the market. In the initial phase details about the various
currencies and the profit and loss of currency hold is collected. The project comprises of several
modules which also includes currency converter and program to calculate profit and loss for both
the operation of the buyer and then the operations of the seller to be considered.
Purpose
The purpose of this project is to scientifically approach the foreign exchange market, and
to evaluate whether we can develop a strategy that can automatically trade in the market
successfully, and can outperform existing basic strategies.
To first understand the various overall market conditions- trending, directionless, and
volatile.
This is crucial, since different trading strategies prove appropriate for differing market
conditions.
1.2 SCOPE OF THE PROJECT
The foreign exchange (forex) market is a financial market for trading currencies. Trades are
made in currency pairs, such as United States dollar and the euro, in which equivalent amounts
of money are exchanged. In addition, hedge funds and investors may choose to trade in the forex
market for profit, as speculators, as the values of currency pairs change.
The forex market is rapidly growing, and an important contributor to this is the retail
investor– the individual speculator who trades currency pairs for profit, either as a full-time job
or for supplementary income. Technology and computers play a key role in bringing these
individuals to the forex market.
2
OVERALL DESCRIPTION
1.3 PRODUCTPERSPECTIVE
Currency Converter gives you accurate and instant foreign currency Conversions .The
options are varied for minimum currency trading investments. There is also mini account
where with a very small initial investment in a leveraged foreign currency, you can reach a
high level of reward and it is get it through the conceptual and satisfactory minimal risk.
SoftwareInterface
Front End Client - The applicant and Administrator online interface is built using JSP and
HTML. The Administrators’ local interface is built using Java.
Web Server-Glassfish application server(Oracle Corporation).Backend- Oracle database.
HardwareInterface
The server is directly connected to the client systems. The client systems have access to the
database and with in the interface of the server and properly done the interfaces.
TECHNOLOGIES TO BE USED
3
• HTML
• JSP
• JavaScript
• Java
• XML
• AJAX
TOOLS TO BE USED
• Eclipse IDE ( Integrated Development Environment)
• Rational Rose tool ( for developing UML Patterns)
BUY
After the user logged in they can buy stocks online the user can buy stock only
it is available for buying.
SELL
After the user logged in they can sell stocks online, the user can sell his own
Stocks only.
BUYER
After the user logged in they can buy stocks online the user can buy stock only. It is
available for buying.
SELLER
4
After the user logged in they can sell stocks online , the user can sell his own
stocks only.
SOFTWARE FUNCTIONS
Front End Client - The investor and buyer online interface is built using JSP and
HTML.The buyer’s local interface is built using Java.
Web Server - Glassfish application server(Oracle Corporation).
Back End - Oracle database.
1.8 CONSTRAINTS
The investor require a computer to submit their information.
Although the security is given high importance, there is always a chance of intrusion in
the web world which requires constant monitoring.
The user has to be careful while submitting the information.
Use Case diagrams identify the functionality provided by the system (use cases), the
users who interact with the system (actors), and the association between the users and the
functionality.Use Cases are used in the Analysis phase of software development to articulate the
high-level requirements of the system. The primary goals of Use Case diagrams include:
• The Applicants and Administrator must have basic knowledge of computers and English
Language.
• The applicants may be required to scan the documents and send.
1.9 IMPLEMENTATION:
After the completion of UML diagrams for FOREIGN TRADING SYSTEM we should
generate the code. Select the tools option from main menu then select the sub option program
module in which we are going to generate the code in JAVA/VB/J2EE. Then go ahead and select
the generate code option as a result of code generation.
1.10 TESTING:
To perform the testing for the generated code again select the tools option from menu
bar and choose quality architecture option a sub window gets opened. We are going to perform
Unit Test and Scenario testing for our project. So, select these testing option one by one and
testing activity is carried out for all the coding and testing is carried out.
CHAPTER 2
Use case diagrams identify the functionality provided by the system,the users who
interact with the system(actors),and the association between the users and the functionality. Use
cases are used in the analysis phase of the software development to articulate the high level
requirements of the system.
Basic Elements:
Actor
Actor is something with behaviour,and is depicted using a stick figure. Actors are not
limited to humans. If a system communicates with another application, the that application can
also be considered an actor.
Use case
A Use case describes a sequence of actions that provide something of measurable value to
an actor. A use case is the functionality provided by the system.
Association
Associations are used to link Actors with Use cases ,and indicate that an actor participate
in the use case in some form. Associations are depicted by a line connecting the actor and the use
case.
<<communicate>>
Technology and data variation : over rider record . for ever record enter an
authorization code.
------------------------------------
10
---------------------------------------
Main success scenario : 1.Storing the information about the account holder.
Technology and Data variation : override the records after withdrawing the amount.
------------------------------------------------
Stakeholders and interest : Sys. admin: Allow the user to get into the account
and view the transactions.
Main success scenario : 1.Buying the amount from the bank authority.
Technology and Data variation : Override the records after withdrawing the
amount.
------------------------------
CHAPTER 3
Activity diagrams are used to document workflows in a system, from the business
level down to the operational level. The activity diagram is a variation of the state diagram where
the “states” represent operations, and the transition represent the activities that happen when the
operation is compleate. The general purpose of Activity diagrams is to focus on flows driven by
internal processing vs. external events.
Basic Elements
1)Activity states
Activity states mark an action by an object. The notations for these states are rounded
rectangles, the same notation as found in state chart diagrams.
2)Transition
When an activity state is completed, processing move to the other activity state.
Transitions are used to mark this movement and modeled using arrows.
3)Initial state
The initial state marks the entry point and the initial activity state. The notation for the
initial state is the same as in state chart diagrams, a solid circle. There can only be one initial
state diagram.
4)Final state
Final states mark the end of the modeled work flow. There can be multiple final states
on a diagram and these states are modeled using a solid circle surrounded by another circle.
5)Synchronization bar
Login operation
17
authenticatio
n
invalid
valid
allowing
access
storing information
about a/c holder
invalid
valid
checking amount
withheld
no money
held
record trading
history
Broker operations
19
sell it to the
investor
CHAPTER 4
20
A Class diagram in the UML gives an overview of the system by showing its classes and
the relationships among them. Class diagrams are static-they display what interacts but not what
happens when they do interact.
Basic Elements
1) Class
A class is a set of objects that share a common structure and common behavior. Its
represented by a rectangle divided into three parts: class name, attributes and operations.
<CLASS NAME>
<ATTRIBUTES>
<OPERATIONS>
2) Relationships
a) Dependency
3) Association
21
There is an association between two classes if an instance of one class must know about
the other in order to perform its work. An association between A and B shown by a line joining
two classes.
4)Aggregation
Aggregation is the association in which one class belongs to the collection.if B aggregates
A,then A is the part of B.
5)Generalization
CHAPTER 5
23
Interaction diagram describes how group of objects are collaborated with each other.
1) SEQUENCE DIAGRAM
2) COLLABORATION DIAGRAM
SEQUENCE DIAGRAM
Basic Elements
1)object
An object has state ,behavior, an identity.object intracts through there links to other
objects .the pictorial representation for an object is a class with pre fixed by the object name and
semicoloun.
:Object 1
24
Login Operation
Investor
trading
account
1: submitt account no.and password
1: buy
3: make investment
4: sell
27
Broker operations
broker trading
database
1: buying the amount from bank
2: if no money.then confirmation
4: if status is profit
5: selling operation
28
CHAPTER 6
A UML statement diagram illustrate the intresting events and states of an object and
the behavior of an object in reaction to the event transition are shown as arrows , labeled with
their events state are shown as rounded rectangles .
BASIC ELEMENTS
1)Events
2)States
For example
A telephone is in the state of being “idle” after the reciver is placed on the hook and until it is
taken off the hook.
3)Transitions
Transition is a relation between states that indicates that when an event occurs,the object
moves from the prior state to the subsequent state.
For example
When the event “off hook”occurs,transition the telephone from “idle to “active”state.
4)Transition action
A trancition can cause a action to fire . in a software implementation , this may represent
the invocation of a method of the class of the state chart diagram
30
CHAPTER 7
The logical architecture is the large scale organization of the software classes into
packages, systems and layers.
Its called the logical architecture because there’s no decision about how these elements
are deployed across different operating system process or across physical computers in a
network.
LAYER:
Layers are organized such that higher layers call upon services of lower layer,but not
normally vise versa.
In strict layered architecture, a layer calls upon the services of thee layer directly
below it .This design is common in network protocol stacks, but not in information systems,
which usually have a relaxed architecture, in which a higher layer calls up on several lower
layers.
It is used for designing logical architecture of the system using this package we can group
anything
It is common to shoe dependency between packages so that developers can see the large
scale coupling in the system.
T he UML dependency line is used for a dashed arrow line with a arrow pointing
towards the dependant on packages.
Packages are defined by 3 symbols
Embedded packages
UML fully qualified names
Circle cross symbol
CHAPTER 8
Technical services layer shows general purpose objects and subsystems that
provide supporting technical services, such as interfacing with a database or error logging. These
services are usually application-independent and reusable across several systems. Technical
service layer describes the relationship between different actors, components of the software
process for any admin seek the registration for new members. So that the new visitor can login
the website and search for book and if need can buy it.
SCREENSHOTS:
FORM2
35
FORM3
FORM4
36
FORM5
37
FORM6
FORM7
38
CHAPTER 9
After technical services layer, the coding can be generated in C++ using Rational
Rose Enterprise Suite.
ACCOUNT
Option Explicit
'##ModelId=4D64958501F4
Private accoutno As Integer
'##ModelId=4D64958E0186
Private balance As Integer
'##ModelId=4D64959B0290
Private due As Integer
'##ModelId=4D6612990290
Public Sub accountno()
MsgBox "your transaction is successfull"
Form6.Show
End Sub
'##ModelId=4D66130F0128
Public Sub accountpay()
MsgBox "your transaction failed. Do your trading again"
Form5.Show
End Sub
ITEM
Option Explicit
'##ModelId=4D6495B600CB
Private name As String
'##ModelId=4D6495BC0213
Private id As Integer
'##ModelId=4D6495CA0251
39
TRADER:
'##ModelId=4D64952500BB
Public Sub login()
If Form1.Text1.Text = "ramya" And Form1.Text2.Text = "ramya" Then
MsgBox "logined successfully"
Form5.Show
Else
MsgBox "invalid login"
End If
End Sub
'##ModelId=4D64952901C5
Public Sub sourcing()
If Form5.Combo1.Text = "perfume" Then
Form3.Show
End If
If Form5.Combo1.Text = "dolls" Then
Form7.Show
End If
End Sub
'##ModelId=4D649531005D
Public Sub placeorder()
Form5.Show
End Sub
'##ModelId=4D64953600FA
Public Sub pay()
Form2.Show
End Sub
40
ADMINISTRATOR
'##ModelId=4D6496030128
Public NewProperty As item
'##ModelId=4D6CAE4001F4
Public Sub paybill2()
Form7.Text3.Text = Form7.Text3.Text - Form7.Text5.Text
End Sub
'##ModelId=4D649563003E
Public Sub bill1()
Form4.Text1.Text = Form3.Text4.Text * Form3.Text5.Text
Form4.Show
End Sub
'##ModelId=4D6CA397008C
Public Sub bill2()
Form8.Text1.Text = Form7.Text4.Text * Form7.Text5.Text
Form8.Show
End Sub
'##ModelId=4D64956F0399
Public Sub traceorder()
Form5.Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\Documents and Settings\Student\Desktop\datum\db.mdb;Persist Security Info=False"
Form5.Adodc1.RecordSource = "select itemname from itemtable"
Set Form5.DataGrid1.DataSource = Form5.Adodc1
Form3.Text5.Text = ""
End Sub
'##ModelId=4D6612B70186
Public Sub paybill1()
Form3.Text3.Text = Form3.Text3.Text - Form3.Text5.Text
End Sub
41
CHAPTER 10
BUYER
After the user logged in they can buy stocks online the user can buy stock only. It is
available for buying.
SELLER
After the user logged in they can sell stocks online , the user can sell his own
stocks only.
LOGIN
The Login module contains the form which contain membership name and
Member password. It includes Username and Password.
BUY
After the user logged in they can buy stocks online the user can buy stock only
it is available for buying.
SELL
After the user logged in they can sell stocks online, the user can sell his own
Stocks only.
42
CHAPTER 11
i. Component diagram
A component diagram depicts how the components are wired together to form larger
components and or software systems. Components are wired together by using an assembly
connector to connect the required interface of one component with the provided interface of
another component.
The components are slightly fuzzy thing.
It describes the module part of the system which encapsulates its components.
It describes the behaviour in terms of interface.
It is a design level perspective.
The main component in the component diagram is foreign trading system. The trader
who come to do the trading process and administrator who manages all the other processes is the
sub components.
A deployment diagram models the physical deployment of artifacts on nodes. The nodes
appear as boxes, and the artifacts allocated to each node appear as rectangles within the boxes.
Nodes may have sub nodes, which appear as nested boxes.
CHAPTER 12
CONCLUSION
45