Package com.nomagic.magicdraw.simulation
Class SimulationProfile.CSVExportStereotype
- java.lang.Object
-
- com.nomagic.profiles.ProfileImplementation.ProfileElementWrapper<Stereotype>
-
- com.nomagic.profiles.ProfileImplementation.StereotypeWrapper
-
- com.nomagic.magicdraw.simulation.SimulationProfile.CSVExportStereotype
-
- Enclosing class:
- SimulationProfile
public static class SimulationProfile.CSVExportStereotype extends ProfileImplementation.StereotypeWrapper
-
-
Field Summary
Fields Modifier and Type Field Description private SimulationProfile_pprivate PropertyfileNamestatic java.lang.StringFILENAMEThe name of the file that the exported results are written into.static java.lang.StringNESTEDPROPERTYPATHSSpecify nested property pathsprivate PropertyrecordTimestatic java.lang.StringRECORDTIMEIf true, time will be recorded in the first column of the exported CSV file.static java.lang.StringREPRESENTSSpecify the classifier represented by the configuration.static java.lang.StringSTEREOTYPE_NAMEstatic java.lang.StringVALUEStructural feature which value should be represented for the configuration.private PropertywriteAtTheEndstatic java.lang.StringWRITEATTHEENDInstead of listening and recording value changes during individual execution, records values only once at the end of execution, right before termination.
-
Constructor Summary
Constructors Modifier Constructor Description protectedCSVExportStereotype(SimulationProfile profile)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNestedPropertyPaths(Element element, java.lang.String value)voidaddValue(Element element, Element value)protected voidclear()voidclearFileName(Element element)voidclearNestedPropertyPaths(Element element)voidclearRecordTime(Element element)voidclearRepresents(Element element)voidclearValue(Element element)voidclearWriteAtTheEnd(Element element)java.lang.StringgetFileName(Element element)PropertygetFileNameProperty()java.util.List<java.lang.String>getNestedPropertyPaths(Element element)PropertygetNestedPropertyPathsProperty()PropertygetRecordTimeProperty()ElementgetRepresents(Element element)PropertygetRepresentsProperty()StereotypegetStereotype()Returns stereotype for this wrapper.java.util.List<Element>getValue(Element element)PropertygetValueProperty()PropertygetWriteAtTheEndProperty()booleanis(Element element)static booleanisInstance(Element element)java.lang.BooleanisRecordTime(Element element)java.lang.BooleanisWriteAtTheEnd(Element element)voidremoveNestedPropertyPaths(Element element, java.lang.String value)voidremoveValue(Element element, Element value)voidsetFileName(Element element, java.lang.String value)voidsetNestedPropertyPaths(Element element, java.util.Collection<java.lang.String> value)voidsetRecordTime(Element element, java.lang.Boolean value)voidsetRepresents(Element element, Element value)voidsetValue(Element element, java.util.Collection<? extends Element> value)voidsetWriteAtTheEnd(Element element, java.lang.Boolean value)-
Methods inherited from class com.nomagic.profiles.ProfileImplementation.StereotypeWrapper
apply, isDerivedStereotype, isSameOrDerivedStereotype, unApply
-
Methods inherited from class com.nomagic.profiles.ProfileImplementation.ProfileElementWrapper
getElementByName
-
-
-
-
Field Detail
-
STEREOTYPE_NAME
public static final java.lang.String STEREOTYPE_NAME
- See Also:
- Constant Field Values
-
FILENAME
public static final java.lang.String FILENAME
The name of the file that the exported results are written into. The path is the same as the project directory (by default). Alternatively, a full path may be specified as D:\ExportedCSVResults.csv.- See Also:
- Constant Field Values
-
RECORDTIME
public static final java.lang.String RECORDTIME
If true, time will be recorded in the first column of the exported CSV file.- See Also:
- Constant Field Values
-
WRITEATTHEEND
public static final java.lang.String WRITEATTHEEND
Instead of listening and recording value changes during individual execution, records values only once at the end of execution, right before termination. When "Number of runs" is more than 1 in main configuration, records values once on every iteration.- See Also:
- Constant Field Values
-
NESTEDPROPERTYPATHS
public static final java.lang.String NESTEDPROPERTYPATHS
Specify nested property paths- See Also:
- Constant Field Values
-
REPRESENTS
public static final java.lang.String REPRESENTS
Specify the classifier represented by the configuration.- See Also:
- Constant Field Values
-
VALUE
public static final java.lang.String VALUE
Structural feature which value should be represented for the configuration.- See Also:
- Constant Field Values
-
_p
private final SimulationProfile _p
-
fileName
@CheckForNull private Property fileName
-
recordTime
@CheckForNull private Property recordTime
-
writeAtTheEnd
@CheckForNull private Property writeAtTheEnd
-
-
Constructor Detail
-
CSVExportStereotype
protected CSVExportStereotype(SimulationProfile profile)
-
-
Method Detail
-
getStereotype
public Stereotype getStereotype()
Description copied from class:ProfileImplementation.StereotypeWrapperReturns stereotype for this wrapper.- Specified by:
getStereotypein classProfileImplementation.StereotypeWrapper- Returns:
- stereotype
-
getFileNameProperty
@CheckForNull public Property getFileNameProperty()
-
getRecordTimeProperty
@CheckForNull public Property getRecordTimeProperty()
-
getWriteAtTheEndProperty
@CheckForNull public Property getWriteAtTheEndProperty()
-
getNestedPropertyPathsProperty
@CheckForNull public Property getNestedPropertyPathsProperty()
-
getRepresentsProperty
@CheckForNull public Property getRepresentsProperty()
-
getValueProperty
@CheckForNull public Property getValueProperty()
-
setFileName
public void setFileName(Element element, @CheckForNull java.lang.String value)
-
clearFileName
public void clearFileName(Element element)
-
getFileName
@CheckForNull public java.lang.String getFileName(Element element)
-
setRecordTime
public void setRecordTime(Element element, @CheckForNull java.lang.Boolean value)
-
clearRecordTime
public void clearRecordTime(Element element)
-
isRecordTime
@CheckForNull public java.lang.Boolean isRecordTime(Element element)
-
setWriteAtTheEnd
public void setWriteAtTheEnd(Element element, @CheckForNull java.lang.Boolean value)
-
clearWriteAtTheEnd
public void clearWriteAtTheEnd(Element element)
-
isWriteAtTheEnd
@CheckForNull public java.lang.Boolean isWriteAtTheEnd(Element element)
-
setNestedPropertyPaths
public void setNestedPropertyPaths(Element element, @CheckForNull java.util.Collection<java.lang.String> value)
-
clearNestedPropertyPaths
public void clearNestedPropertyPaths(Element element)
-
addNestedPropertyPaths
public void addNestedPropertyPaths(Element element, java.lang.String value)
-
removeNestedPropertyPaths
public void removeNestedPropertyPaths(Element element, java.lang.String value)
-
getNestedPropertyPaths
public java.util.List<java.lang.String> getNestedPropertyPaths(Element element)
-
clearRepresents
public void clearRepresents(Element element)
-
setValue
public void setValue(Element element, @CheckForNull java.util.Collection<? extends Element> value)
-
clearValue
public void clearValue(Element element)
-
clear
protected void clear()
- Overrides:
clearin classProfileImplementation.ProfileElementWrapper<Stereotype>
-
is
public boolean is(@CheckForNull Element element)
-
isInstance
public static boolean isInstance(@CheckForNull Element element)
-
-