|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--EASE.Sensing.Specification.SpecExport
This is to give actions etc. enough access to Specification to do whatever it needs.
Field Summary | |
private java.util.Vector |
changeListeners
|
private Debugger |
debugger
|
static javax.swing.JFileChooser |
fileChooser
|
private static OpenFileAction |
openFileAction
|
private static java.util.HashMap |
openFiles
|
private static Specification |
s
|
static boolean |
unsavedChanges
This variable records whether changes have occurred since last save. |
Constructor Summary | |
SpecExport(Specification s)
|
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e,
java.awt.Component source)
|
java.util.Vector |
activations()
|
void |
addChangeListener(ChangeListener l)
|
void |
Cancel()
|
private void |
changePanel(javax.swing.JComponent panel)
Change over the centre panel |
java.util.Vector |
constants()
|
void |
currentPanelDone()
|
void |
editActivationPanel(Activation s)
|
void |
editConditionalPanel(Conditional c)
|
void |
editConstantPanel(Constant c)
|
void |
editIfPanel(IfStatement i)
|
void |
editSatisfactionPanel(Satisfaction s)
|
void |
editTransitionPanel(TransitionCondition tc)
|
void |
editUnaryPanel(UnaryExpression c)
|
java.util.Vector |
expressions()
|
javax.swing.JFrame |
frame()
Get the main specification frame. |
static Cell |
getCell(CellReference cr)
|
private static Cell |
getCell(java.lang.String name)
Gets a Cell from the store. |
private java.util.Vector |
getCellsByCellType(java.lang.String cellType)
|
java.util.Vector |
getCellsByReturnType(int type)
|
static ExtensionFileFilter |
getConditionFilter()
Get an extension filter for condition files |
java.util.Vector |
getFileOutput()
|
NoEditDisplay |
getNoEditDisplay()
Get a non editiable display of the available Cells. |
CellReference |
getReference(Cell c)
Access for storable reference to a condition. |
Cell |
getSelectedCell()
Get the currently selected Tree node Set its treepath in case its needed. |
static ExtensionFileFilter |
getSpecificationFilter()
Get an extension filter for condition files |
java.util.Vector |
ifs()
|
void |
newActivationPanel()
|
void |
newConstantPanel()
|
void |
newExpressionPanel()
|
void |
newIfPanel()
|
void |
newSatisfactionPanel()
|
void |
newTransitionPanel()
|
void |
newUnaryPanel()
|
void |
notifyChange()
|
void |
openFile(java.lang.String fileName)
|
void |
removeCell(Cell c)
|
void |
removeChangeListener(ChangeListener l)
|
java.util.Vector |
satisfactions()
|
java.util.Vector |
sensors()
|
static void |
setCellFileName(javax.swing.tree.DefaultMutableTreeNode node)
Set the file name for a single Node |
java.util.Vector |
transitions()
|
java.util.Vector |
unaryExpressions()
|
Methods inherited from class java.lang.Object |
|
Field Detail |
public static javax.swing.JFileChooser fileChooser
public static boolean unsavedChanges
The SaveAction sets it back to false if all saves succeed.
private static java.util.HashMap openFiles
private static OpenFileAction openFileAction
private static Specification s
private Debugger debugger
private java.util.Vector changeListeners
Constructor Detail |
public SpecExport(Specification s)
Method Detail |
public void editConstantPanel(Constant c)
public void editConditionalPanel(Conditional c)
public void editUnaryPanel(UnaryExpression c)
public void editIfPanel(IfStatement i)
public void editSatisfactionPanel(Satisfaction s)
public void editActivationPanel(Activation s)
public void editTransitionPanel(TransitionCondition tc)
public void newConstantPanel()
public void newExpressionPanel()
public void newUnaryPanel()
public void newIfPanel()
public void newSatisfactionPanel()
public void newActivationPanel()
public void newTransitionPanel()
private void changePanel(javax.swing.JComponent panel)
public void Cancel()
public void currentPanelDone()
public Cell getSelectedCell()
Set its treepath in case its needed.
private java.util.Vector getCellsByCellType(java.lang.String cellType)
public java.util.Vector sensors()
public java.util.Vector constants()
public java.util.Vector expressions()
public java.util.Vector unaryExpressions()
public java.util.Vector ifs()
public java.util.Vector satisfactions()
public java.util.Vector activations()
public java.util.Vector transitions()
public java.util.Vector getCellsByReturnType(int type)
public javax.swing.JFrame frame()
public NoEditDisplay getNoEditDisplay()
public void removeCell(Cell c)
public java.util.Vector getFileOutput()
public static ExtensionFileFilter getConditionFilter()
public static ExtensionFileFilter getSpecificationFilter()
public static void setCellFileName(javax.swing.tree.DefaultMutableTreeNode node)
public void openFile(java.lang.String fileName)
public CellReference getReference(Cell c)
c
- Cell that a reference should be retrieved for. If the cell is a parameter a parameter reference is returned.
Otherwise a proper CellReference is returned, possibly with a list of parameter references included if the cell has parameters. The parameter references are stored as ParameterReferences.
The parameter reference part may not work correctly for multiple files, need to check.
Perhaps should be moved to CellStore?
public static Cell getCell(CellReference cr)
private static Cell getCell(java.lang.String name)
Name needs to be fullname
public void actionPerformed(java.awt.event.ActionEvent e, java.awt.Component source)
public void addChangeListener(ChangeListener l)
public void removeChangeListener(ChangeListener l)
public void notifyChange()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |