Expert System of Sewing Machine Based on UML
During the actual operation of the expert system for
motor selection, some kinds of functions must be
showed, such as outputting the following motor
parameters according to the input data: the motor model,
the protection and structure form, the rated power and
cooling ventilation, the rated speed. Of course, these
contents can be outputted individually or in combination.
And finally the users determine the required motor
according to these dates. System functions as follows:
1) Motor selection function: The users input the data
according to various motor parameters into the system.
The system chooses the relative rules based on the data
from the rule base. Then it uses the rules to reason the
results. At last the results of the rule inference are given
and displayed to the users.
2) Add, Modify and Delete the rules: The user can
add some rules through the system. In practical use, the
users may find that there are some discrepancies between
the rules and the actual situations. So adding, modifying,
or deleting the rules according to the actual situations
can expand the system and provide better service for the
users.VS sewing machine
3) Add, Modify and Delete the facts: Likewise, the
operation of fact base is also essential. In practical use,
there are all kinds of problems. However the fact of this
system is only the result in general case. So adding,
modifying, deleting the facts is also a necessary means
to make the system more and more clever.
B. The establishment of fact base
The establishment of fact base of motor selection,
mainly list out the various parameters of the motor,
different properties and the types of motor and is used to
activate phase matching rules to carry out the selection
of the motor.
1) The fact base of determining the types of motor
according to the load property, the request of production
process on the start, brake, turnover speed control, such
as:
Fact 1 (Speed range Large)
Fact 2 (Speed range Free)
Fact 3 (Speed range Small)
Fact 4 (Speed smoothness none)
2) The fact base of determining the types of motor
according to the situation of the network voltage, voltage
grade, such as:
(Rated voltage 440v)
(Rated voltage 220v)
(Rated voltage 160v)
(Motor type: Three-phase Asynchronous Motor)
(Motor type: Single-phase Asynchronous Motor)
(Motor type: DC Motor)
3) The fact base of determining the protective form
and the method of cooling ventilation according to the
environmental conditions, such as:
(Solid type: Solid diameter> 50 mm)
(Solid type: Solid diameter> 12 mm)
(Solid type: Solid diameter> 1 mm)
(Solid type: Dust)
(Waterproof type: Anti-drip)
C. The establishment of rule base
1) The definition of rule base
On the basis of the definition of fact base and the
knowledge of motor selection, the parameters which are
needed to identify when selecting motor, can summarize
as follows: motor type, protective form and structure
form, rated power and cooling ventilation method, rated
speed. As shown below:
Rule using the form if <premise> then <action> or
<summary>
Basis of the knowledgebase which based on the fact
above, the effect of the rule is utilizing the knowledge in
the knowledgebase and justifying by the expert
knowledge. Therefore, it is necessary to know the
contents of the knowledgebase before setting up the
expert system and set up the rule base of controlling
knowledge combined with expert knowledge and
experience.
2) The expression for rule base
By summarizing and concluding all knowledge
points above, the rule base of the electromotor choice
expert system can be described as follow:
(1) Motor type
if Speed range = Large then motor type = DC Motor
if Speed range = None then motor type = Cage
Asynchronous Motor
if Starting torque = large then type = DC Series Motor
if Speed range = None and motor capacity = Large
then motor type = Synchronous Motor
if Speed range = Small and speed smoothness = None
then motor type = Variable Class and Variable Speed
Motor …
(2) The protection type of motor
if Solid type = Solid diameter> 50 mm and Waterproof
type = Anti-drip then Protection level = IP11
if Solid type = Solid diameter > 12 mm and
Waterproof type = Anti-drip then Protection level =
IP21
if Solid type = Solid diameter > 12 mm and Waterproof
type =15 ' Anti-drip then Protection level = IP22 ...
(3) The selection of cooling ventilation
if Using environment = Clean and Motor type = DC
Motor then Cooling ventilation = Self-cooled opening
or Cooling ventilation = pipeline through cooling
opening
if Using environment = Dusty and Motor type = DC
Motor then Cooling ventilation = Self-cooled closing
if Using environment = Poor and Motor type = DC
Motor then Cooling ventilation = Self-cooling Antidrip...
(4) The selection of motor structure
if Installation condition = The frame with feet and
Installation condition = The end cover without flange
then Installing structure type = B3
if Installation condition = The frame with feet and
Installation condition = The end cover with flange then
Installing structure type = B35
if Installation condition = The frame without feet
and Installation condition = The end cover with flange
then Installing structure type = B5...
(5) The selection of motor power
if Maximum Speed > 1500 and Maximum Speed
<3000 and Economy = High then Rated speed = 3000
if Maximum Speed > 1000 and Maximum Speed
<1500 and Economy = High then Rated speed = 1500
if Maximum Speed > 750 and Maximum Speed
<1000 and Economy = High then Rated speed =
1000...
D. Inference Engine
The Jess is used as inference engine during the
development of this system. Jess is an expert system
development tool which is written out by Sun's Java
language. Jess supports the development of the expert
system based rules [6].And it belongs to the open source
software.
Now, Jess 6.1 can compatible with all versions of
Java language, especially Java1.2 including the Java
Development Kit 1.4. Jess is a program library and the
library itself is written by Java. The languages which are
defined separately by Jess system and CLIPS expert
system are very similar. Both of them are one form of
LISP. There are two main ways to use the Jess. One is
extending Jess by Java; the other is calling the Jess’ class
library by Java.
E. Software designing based on UML
The UML is a visual standard modeling language
which is object-oriented. UML uses graphic symbols to
express the objects and their relations of the system and
describes the developing system from different
perspectives [6]. The modeling process of UML has
main steps as follow:
(1) The establishment of the demand model: That
is setting up use case model from functional
requirements and obtaining the function of the system.
(2) The establishment of the object model: The
object model include the static model and the dynamic
model .Static model uses class diagram, object diagram
and package diagram to describe the system objects
https://www.vssewingmachine.in/
During the actual operation of the expert system for
motor selection, some kinds of functions must be
showed, such as outputting the following motor
parameters according to the input data: the motor model,
the protection and structure form, the rated power and
cooling ventilation, the rated speed. Of course, these
contents can be outputted individually or in combination.
And finally the users determine the required motor
according to these dates. System functions as follows:
1) Motor selection function: The users input the data
according to various motor parameters into the system.
The system chooses the relative rules based on the data
from the rule base. Then it uses the rules to reason the
results. At last the results of the rule inference are given
and displayed to the users.
2) Add, Modify and Delete the rules: The user can
add some rules through the system. In practical use, the
users may find that there are some discrepancies between
the rules and the actual situations. So adding, modifying,
or deleting the rules according to the actual situations
can expand the system and provide better service for the
users.VS sewing machine
3) Add, Modify and Delete the facts: Likewise, the
operation of fact base is also essential. In practical use,
there are all kinds of problems. However the fact of this
system is only the result in general case. So adding,
modifying, deleting the facts is also a necessary means
to make the system more and more clever.
B. The establishment of fact base
The establishment of fact base of motor selection,
mainly list out the various parameters of the motor,
different properties and the types of motor and is used to
activate phase matching rules to carry out the selection
of the motor.
1) The fact base of determining the types of motor
according to the load property, the request of production
process on the start, brake, turnover speed control, such
as:
Fact 1 (Speed range Large)
Fact 2 (Speed range Free)
Fact 3 (Speed range Small)
Fact 4 (Speed smoothness none)
2) The fact base of determining the types of motor
according to the situation of the network voltage, voltage
grade, such as:
(Rated voltage 440v)
(Rated voltage 220v)
(Rated voltage 160v)
(Motor type: Three-phase Asynchronous Motor)
(Motor type: Single-phase Asynchronous Motor)
(Motor type: DC Motor)
3) The fact base of determining the protective form
and the method of cooling ventilation according to the
environmental conditions, such as:
(Solid type: Solid diameter> 50 mm)
(Solid type: Solid diameter> 12 mm)
(Solid type: Solid diameter> 1 mm)
(Solid type: Dust)
(Waterproof type: Anti-drip)
C. The establishment of rule base
1) The definition of rule base
On the basis of the definition of fact base and the
knowledge of motor selection, the parameters which are
needed to identify when selecting motor, can summarize
as follows: motor type, protective form and structure
form, rated power and cooling ventilation method, rated
speed. As shown below:
Rule using the form if <premise> then <action> or
<summary>
Basis of the knowledgebase which based on the fact
above, the effect of the rule is utilizing the knowledge in
the knowledgebase and justifying by the expert
knowledge. Therefore, it is necessary to know the
contents of the knowledgebase before setting up the
expert system and set up the rule base of controlling
knowledge combined with expert knowledge and
experience.
2) The expression for rule base
By summarizing and concluding all knowledge
points above, the rule base of the electromotor choice
expert system can be described as follow:
(1) Motor type
if Speed range = Large then motor type = DC Motor
if Speed range = None then motor type = Cage
Asynchronous Motor
if Starting torque = large then type = DC Series Motor
if Speed range = None and motor capacity = Large
then motor type = Synchronous Motor
if Speed range = Small and speed smoothness = None
then motor type = Variable Class and Variable Speed
Motor …
(2) The protection type of motor
if Solid type = Solid diameter> 50 mm and Waterproof
type = Anti-drip then Protection level = IP11
if Solid type = Solid diameter > 12 mm and
Waterproof type = Anti-drip then Protection level =
IP21
if Solid type = Solid diameter > 12 mm and Waterproof
type =15 ' Anti-drip then Protection level = IP22 ...
(3) The selection of cooling ventilation
if Using environment = Clean and Motor type = DC
Motor then Cooling ventilation = Self-cooled opening
or Cooling ventilation = pipeline through cooling
opening
if Using environment = Dusty and Motor type = DC
Motor then Cooling ventilation = Self-cooled closing
if Using environment = Poor and Motor type = DC
Motor then Cooling ventilation = Self-cooling Antidrip...
(4) The selection of motor structure
if Installation condition = The frame with feet and
Installation condition = The end cover without flange
then Installing structure type = B3
if Installation condition = The frame with feet and
Installation condition = The end cover with flange then
Installing structure type = B35
if Installation condition = The frame without feet
and Installation condition = The end cover with flange
then Installing structure type = B5...
(5) The selection of motor power
if Maximum Speed > 1500 and Maximum Speed
<3000 and Economy = High then Rated speed = 3000
if Maximum Speed > 1000 and Maximum Speed
<1500 and Economy = High then Rated speed = 1500
if Maximum Speed > 750 and Maximum Speed
<1000 and Economy = High then Rated speed =
1000...
D. Inference Engine
The Jess is used as inference engine during the
development of this system. Jess is an expert system
development tool which is written out by Sun's Java
language. Jess supports the development of the expert
system based rules [6].And it belongs to the open source
software.
Now, Jess 6.1 can compatible with all versions of
Java language, especially Java1.2 including the Java
Development Kit 1.4. Jess is a program library and the
library itself is written by Java. The languages which are
defined separately by Jess system and CLIPS expert
system are very similar. Both of them are one form of
LISP. There are two main ways to use the Jess. One is
extending Jess by Java; the other is calling the Jess’ class
library by Java.
E. Software designing based on UML
The UML is a visual standard modeling language
which is object-oriented. UML uses graphic symbols to
express the objects and their relations of the system and
describes the developing system from different
perspectives [6]. The modeling process of UML has
main steps as follow:
(1) The establishment of the demand model: That
is setting up use case model from functional
requirements and obtaining the function of the system.
(2) The establishment of the object model: The
object model include the static model and the dynamic
model .Static model uses class diagram, object diagram
and package diagram to describe the system objects
https://www.vssewingmachine.in/
No comments:
Post a Comment