Package com.nomagic.magicdraw.simulation
Class SimulationProfile.CSVExportStereotype
- java.lang.Object
-
- 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 static java.lang.String
FILENAME
The name of the file that the exported results are written into.static java.lang.String
NESTEDPROPERTYPATHS
Specify nested property pathsstatic java.lang.String
RECORDTIME
If true, time will be recorded in the first column of the exported CSV file.static java.lang.String
REPRESENTS
Specify the classifier represented by the configuration.static java.lang.String
STEREOTYPE_NAME
static java.lang.String
VALUE
Structural feature which value should be represented for the configuration.static 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.
-
Constructor Summary
Constructors Modifier Constructor Description protected
CSVExportStereotype(SimulationProfile profile)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addNestedPropertyPaths(Element element, java.lang.String value)
void
addValue(Element element, Element value)
protected void
clear()
void
clearFileName(Element element)
void
clearNestedPropertyPaths(Element element)
void
clearRecordTime(Element element)
void
clearRepresents(Element element)
void
clearValue(Element element)
void
clearWriteAtTheEnd(Element element)
java.lang.String
getFileName(Element element)
Property
getFileNameProperty()
java.util.List<java.lang.String>
getNestedPropertyPaths(Element element)
Property
getNestedPropertyPathsProperty()
Property
getRecordTimeProperty()
Element
getRepresents(Element element)
Property
getRepresentsProperty()
Stereotype
getStereotype()
Returns stereotype for this wrapper.java.util.List<Element>
getValue(Element element)
Property
getValueProperty()
Property
getWriteAtTheEndProperty()
boolean
is(Element element)
static boolean
isInstance(Element element)
java.lang.Boolean
isRecordTime(Element element)
java.lang.Boolean
isWriteAtTheEnd(Element element)
void
removeNestedPropertyPaths(Element element, java.lang.String value)
void
removeValue(Element element, Element value)
void
setFileName(Element element, java.lang.String value)
void
setNestedPropertyPaths(Element element, java.util.Collection<java.lang.String> value)
void
setRecordTime(Element element, java.lang.Boolean value)
void
setRepresents(Element element, Element value)
void
setValue(Element element, java.util.Collection<? extends Element> value)
void
setWriteAtTheEnd(Element element, java.lang.Boolean value)
-
Methods inherited from class com.nomagic.profiles.ProfileImplementation.StereotypeWrapper
apply, isDerivedStereotype, isSameOrDerivedStereotype, unApply
-
-
-
-
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
-
-
Constructor Detail
-
CSVExportStereotype
protected CSVExportStereotype(SimulationProfile profile)
-
-
Method Detail
-
getStereotype
public Stereotype getStereotype()
Description copied from class:ProfileImplementation.StereotypeWrapper
Returns stereotype for this wrapper.- Specified by:
getStereotype
in 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()
-
is
public boolean is(@CheckForNull Element element)
-
isInstance
public static boolean isInstance(@CheckForNull Element element)
-
-