Skip to content
GitLab
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
d43ce9a2
Commit
d43ce9a2
authored
Feb 01, 2018
by
Hafiz Muhammad Wahaj Aziz
Browse files
attempt to commit
refs 3055
parent
50801e6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
org.fortiss.af3.cosimulation/trunk/src/org/fortiss/af3/cosimulation/compose/CosimulationPrototypeProvider.java
0 → 100644
View file @
d43ce9a2
/*--------------------------------------------------------------------------+
$Id$
| |
| Copyright 2011 ForTISS GmbH |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
+--------------------------------------------------------------------------*/
package
org.fortiss.af3.cosimulation.compose
;
import
static
org
.
fortiss
.
af3
.
cosimulation
.
utils
.
CosimulationSpecificationUtils
.
createCosimulationSpecification
;
import
static
org
.
fortiss
.
af3
.
cosimulation
.
utils
.
FMUSpecificationUtils
.
createFMUSpecification
;
import
org.fortiss.af3.component.prototypes.GloballyCategorizedPrototypeProviderBase
;
import
org.fortiss.af3.cosimulation.model.CosimulationSpecification
;
import
org.fortiss.af3.cosimulation.model.FMUSpecification
;
import
org.fortiss.tooling.kernel.extension.IPrototypeProvider
;
/**
* {@link IPrototypeProvider} for {@link CosimulationSpecification}s.
*
* @author vogelsan
*
* @ConQAT.Rating GREEN Hash: C86054A0DDEC7388502CCEBE2DBFE0CF
*/
public
class
CosimulationPrototypeProvider
extends
GloballyCategorizedPrototypeProviderBase
{
/** {@inheritDoc} */
@Override
public
void
registerPrototypes
()
{
CosimulationSpecification
specification
=
createCosimulationSpecification
();
specification
.
setServiceHost
(
"localhost"
);
specification
.
setServicePort
(
"9999"
);
specification
.
setServicePath
(
"ws/cosimulation"
);
specification
.
setBoolTypeRepresentation
(
"boolean"
);
specification
.
setBooleanNumericRepresentation
(
false
);
specification
.
setDoubleTypeRepresentation
(
"double"
);
specification
.
setDoubleSeparator
(
"."
);
specification
.
setIntTypeRepresentation
(
"int"
);
registerPrimaryPrototype
(
"Cosimulation Specification"
,
specification
,
CATEGORY_NAME_SECONDARY_SPEC
);
FMUSpecification
spec
=
createFMUSpecification
();
registerPrimaryPrototype
(
"FMU Specification"
,
spec
,
CATEGORY_NAME_SECONDARY_SPEC
);
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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