Commit d43ce9a2 authored by Hafiz Muhammad Wahaj Aziz's avatar Hafiz Muhammad Wahaj Aziz
Browse files

attempt to commit

refs 3055
parent 50801e6e
/*--------------------------------------------------------------------------+
$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);
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment