package de.FeatureModellingTool.Pattern;
import java.util.ArrayList;
import java.util.List;
import manager.IllegalParameterException;
import manager.ManagerInterface;
import component.FComponent;
import de.FeatureModellingTool.FeatureModel.CompositeConstraintEditor;
import de.FeatureModellingTool.FeatureModel.ConstraintModel;
import de.FeatureModellingTool.FeatureModel.ConstraintModelEditor;
import de.FeatureModellingTool.FeatureModel.FeatureEditor;
import de.FeatureModellingTool.FeatureModel.FeatureModel;
import de.FeatureModellingTool.FeatureModel.FeatureModelEditor;
import de.FeatureModellingTool.FeatureModel.FeatureModelPropertyEditor;
import de.FeatureModellingTool.FeatureModel.FeatureRelationManager;
import de.FeatureModellingTool.FeatureModel.GroupConstraintEditor;
import de.FeatureModellingTool.FeatureModel.VPConstraintEditor;
/**
* author:chenting
* date:2007-11-22
* time:����09:55:50
*/
class TempleteImplementation implements Templete{
protected String name;
protected String description;
protected Pattern fatherPattern=null;
protected Templete fatherTemplete=null;
protected List<Templete> childrenTempletes;
protected Parameter parameters;
protected FComponent featureModelNGObject = null;
protected FeatureModel featureModel = null;
protected FeatureEditor featureEditor = null;
protected FeatureModelEditor featureModelEditor = null;
protected FeatureModelPropertyEditor featureModelPropertyEditor = null;
protected FeatureRelationManager featureRelationManager = null;
protected ConstraintModel constraintModel = null;
protected ConstraintModelEditor constraintModelEditor = null;
protected CompositeConstraintEditor plConstraintEditor = null;
protected GroupConstraintEditor gConstraintEditor = null;
protected VPConstraintEditor vpConstraintEditor = null;
public TempleteImplementation(String name){
ManagerInterface mi = de.FeatureModellingTool.FeatureModel.Manager.getInstance();
mi.getContext().putValue(de.FeatureModellingTool.FeatureModel.Manager.NAME_CONTEXT, name);
try {
featureModelNGObject = (FComponent) mi.getInstance(de.FeatureModellingTool.FeatureModel.Manager.FEATURE_MODEL_NAME, FComponent.class);
} catch (IllegalParameterException ipe) {
System.out.println(ipe);
}
featureModel = (FeatureModel) featureModelNGObject.getInterface(de.FeatureModellingTool.FeatureModel.Manager.FEATURE_MODEL_INTERFACE);
featureEditor = (FeatureEditor) featureModelNGObject.getInterface(de.FeatureModellingTool.FeatureModel.Manager.FEATURE_EDITOR_INTERFACE);
featureModelEditor = (FeatureModelEditor) featureModelNGObject.getInterface(de.FeatureModellingTool.FeatureModel.Manager.FEATURE_MODEL_EDITOR_INTERFACE);
featureModelPropertyEditor = (FeatureModelPropertyEditor) featureModelNGObject.getInterface(de.FeatureModellingTool.FeatureModel.Manager.FEATURE_MODEL_PROPERTY_EDITOR_INTERFACE);
featureRelationManager = (FeatureRelationManager) featureModelNGObject.getInterface(de.FeatureModellingTool.FeatureModel.Manager.FEATURE_RELATION_MANAGER_INTERFACE);
constraintModel = (ConstraintModel) featureModelNGObject.getInterface(de.FeatureModellingTool.FeatureModel.Manager.CONSTRAINT_MODEL_INTERFACE);
constraintModelEditor = (ConstraintModelEditor) featureModelNGObject.getInterface(de.FeatureModellingTool.FeatureModel.Manager.CONSTRAINT_MODEL_EDITOR_INTERFACE);
plConstraintEditor = (CompositeConstraintEditor) featureModelNGObject.getInterface(de.FeatureModellingTool.FeatureModel.Manager.PL_CONSTRAINT_EDITOR_INTERFACE);
gConstraintEditor = (GroupConstraintEditor) featureModelNGObject.getInterface(de.FeatureModellingTool.FeatureModel.Manager.GROUP_CONSTRAINT_EDITOR_INTERFACE);
vpConstraintEditor = (VPConstraintEditor) featureModelNGObject.getInterface(de.FeatureModellingTool.FeatureModel.Manager.VP_CONSTRAINT_EDITOR_INTERFACE);
childrenTempletes=new ArrayList<Templete>();
parameters=new ParameterImplementation();
}
public String getName() {
return null;
}
public List<Templete> getChildrenTempletes() {
// TODO Auto-generated method stub
return null;
}
public GroupConstraintEditor getConstraintEditor() {
// TODO Auto-generated method stub
return null;
}
public ConstraintModel getConstraintModel() {
// TODO Auto-generated method stub
return null;
}
public ConstraintModelEditor getConstraintModelEditor() {
// TODO Auto-generated method stub
return null;
}
public String getDescription() {
// TODO Auto-generated method stub
return null;
}
public FeatureEditor getFeatureEditor() {
// TODO Auto-generated method stub
return null;
}
public FeatureModel getFeatureModel() {
// TODO Auto-generated method stub
return null;
}
public FeatureModelEditor getFeatureModelEditor() {
// TODO Auto-generated method stub
return null;
}
public FeatureModelPropertyEditor getFeaturePropertyEditor() {
// TODO Auto-generated method stub
return null;
}
public FeatureRelationManager getFeatureRelationManager() {
// TODO Auto-generated method stub
return null;
}
public Object getParameters() {
// TODO Auto-generated method stub
return null;
}
public CompositeConstraintEditor getPlConstraintEditor() {
// TODO Auto-generated method stub
return null;
}
public VPConstraintEditor getVpConstraintEditor() {
// TODO Auto-generated method stub
return null;
}
public Object getfather() {
// TODO Auto-generated method stub
return null;
}
}