Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
af3
AF3
Commits
536c4052
Commit
536c4052
authored
May 23, 2012
by
Mingjun Li
Browse files
Junittest for vhdl generator
refs 662
parent
f99294be
Changes
1
Hide whitespace changes
Inline
Side-by-side
org.fortiss.af3.component/trunk/src/org/fortiss/af3/component/utils/BehaviorUtils.java
View file @
536c4052
...
...
@@ -30,15 +30,14 @@ import org.fortiss.tooling.kernel.utils.EcoreUtils;
* @author ratiu
* @author $Author: hoelzl $
* @version $Rev: 18709 $
* @ConQAT.Rating GREEN Hash: 8
CED98E961C9088EB6839D250ECC8BC8
* @ConQAT.Rating GREEN Hash: 8
7BB75EE4561F2ECD97E0E1FD9D2AF0A
*/
public
class
BehaviorUtils
{
/**
* Returns the {@link CodeSpecification} specification of a
* {@link Component} or null if no such specification is available. We
* assume that a component has AT MOST ONE {@link CodeSpecification}
* specification.
* Returns the {@link CodeSpecification} specification of a {@link Component} or null if no such
* specification is available. We
* assume that a component has AT MOST ONE {@link CodeSpecification} specification.
*
* @param component
* the component of which the code-specification should be
...
...
@@ -60,11 +59,13 @@ public class BehaviorUtils {
* @return the corresponding data state variable or null, if it does not
* exist;
*/
public
static
DataStateVariable
findVariableByNameFromList
(
List
<
DataStateVariable
>
dsvList
,
String
dsvName
)
{
for
(
DataStateVariable
dsv
:
dsvList
)
{
if
(
dsv
.
getVariable
().
getIdentifier
().
equals
(
dsvName
))
{
return
dsv
;
public
static
DataStateVariable
findVariableByNameFromList
(
List
<
DataStateVariable
>
dsvList
,
String
dsvName
)
{
if
(
dsvList
!=
null
)
{
for
(
DataStateVariable
dsv
:
dsvList
)
{
if
(
dsv
.
getVariable
().
getIdentifier
().
equals
(
dsvName
))
{
return
dsv
;
}
}
}
return
null
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment