[Bprocessor-commit] model/src/net/sourceforge/bprocessor/model/modellor Modellor.java, 1.11, 1.12
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2007-06-18 09:03:52
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/modellor In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv11053/src/net/sourceforge/bprocessor/model/modellor Modified Files: Modellor.java Log Message: Renamed some parameters Index: Modellor.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/modellor/Modellor.java,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** Modellor.java 17 Apr 2007 13:04:44 -0000 1.11 --- Modellor.java 18 Jun 2007 09:03:43 -0000 1.12 *************** *** 51,58 **** /** * Register a modellor to the possible choices of modellors ! * @param m The modellor */ ! public static void registerModellor(Modellor m) { ! modellors.add(m); } --- 51,58 ---- /** * Register a modellor to the possible choices of modellors ! * @param modellor The modellor */ ! public static void registerModellor(Modellor modellor) { ! modellors.add(modellor); } *************** *** 74,82 **** /** * De-register a modellor from the system ! * @param m The modellor to remove from the registry * @return True if it succedes */ ! public static boolean removeModellor(Modellor m) { ! return modellors.remove(m); } --- 74,82 ---- /** * De-register a modellor from the system ! * @param modellor The modellor to remove from the registry * @return True if it succedes */ ! public static boolean removeModellor(Modellor modellor) { ! return modellors.remove(modellor); } *************** *** 108,127 **** /** * method to fill in all the attributes, in the wished order ! * @param l the list to fill in the attributes */ ! public abstract void getAttributes(List<Attribute> l); /** * Set attributes in the modellor ! * @param m a map of attribute name to attributes for quick lookup */ ! public abstract void setAttributes(Map<String, Attribute> m); /** * Create a new instance of the modellor, based on a space ! * @param s The space the modellor should reside in * @return The created modellor object for the given space */ ! public abstract Modellor newInstance(Space s); /** --- 108,127 ---- /** * method to fill in all the attributes, in the wished order ! * @param attributes the list to fill in the attributes */ ! public abstract void getAttributes(List<Attribute> attributes); /** * Set attributes in the modellor ! * @param map a map of attribute name to attributes for quick lookup */ ! public abstract void setAttributes(Map<String, Attribute> map); /** * Create a new instance of the modellor, based on a space ! * @param space The space the modellor should reside in * @return The created modellor object for the given space */ ! public abstract Modellor newInstance(Space space); /** *************** *** 150,158 **** /** * Set the entire content of the modellor to the given map key to value pairs ! * @param m the map containing the values; */ ! public void setContent(Map<String, Object> m) { ! active = ((Boolean)m.get("active")).booleanValue(); ! setSubContent(m); } --- 150,158 ---- /** * Set the entire content of the modellor to the given map key to value pairs ! * @param map the map containing the values; */ ! public void setContent(Map<String, Object> map) { ! active = ((Boolean)map.get("active")).booleanValue(); ! setSubContent(map); } *************** *** 170,182 **** /** * Abstract method for getting the implementing modellors content ! * @param c the map to put the content in */ ! public abstract void getSubContent(Map<String, Object> c); /** * Abstact method for setting the content in extending classes ! * @param c The map containing the object setting */ ! public abstract void setSubContent(Map<String, Object> c); /** --- 170,182 ---- /** * Abstract method for getting the implementing modellors content ! * @param map the map to put the content in */ ! public abstract void getSubContent(Map<String, Object> map); /** * Abstact method for setting the content in extending classes ! * @param map The map containing the object setting */ ! public abstract void setSubContent(Map<String, Object> map); /** |