Class CellFactory
java.lang.Object
jsimgraph.JGraphMod.CellFactory
A class grouping all cell creation suff
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateCell(String className) Creates a new cell of given class with default user object (CellComponent)createCell(String className, Object userObject) Creates a new cell of given class with given user objectcreateComponent(String className) Creates a new component of a given class.createStationCell(Object key) Creates a new cell for the station with the given search keyvoiddeleteCell(JmtCell cell) Deletes a JmtCell component removing its data structuregetComponentType(String className) This class is used as a bridge with new data structure (common with JSIM).predictCellSize(String className) Calculate exact size of aJmtCellcomponent before creating it.
-
Constructor Details
-
CellFactory
Instantiate a new CellFactory- Parameters:
mediator- reference to mediator
-
-
Method Details
-
createCell
-
createStationCell
-
createCell
-
createComponent
Creates a new component of a given class.- Parameters:
className- className of cell component to be created- Returns:
- created component Author: Bertoli Marco
-
getComponentType
This class is used as a bridge with new data structure (common with JSIM). It will returns component type constant to be used onJMODELModelgiven *Cell classname.- Parameters:
className- className of cell component- Returns:
- type in the format needed by JMODELModel methods Author: Bertoli Marco
-
deleteCell
Deletes a JmtCell component removing its data structure- Parameters:
cell- component to be eliminated
-
predictCellSize
-