Package Modules

Examples of Modules.RoomType


            String nameTarget = this.getNameRoomType(id);
            for(int num: arrayIndx){
                deleteFurn.add(transRelated.get(num));
            }
            Collections.sort(idFurniture);
            RoomType newRoomType = new RoomType(nameTarget,idFurniture);
            newRoomType.deleteRelatedList(deleteFurn);
            setUpdate(id,newRoomType);
        }
        int size = cjtRoomType.size();
        int maxId = this.cjtRoomType.getCount();
       
View Full Code Here


                previous.add(translateObject.get(num));
            }
        }
        Collections.sort(previous);
        String nameTarget = this.getNameRoomType(id);
        RoomType newRoomType = new RoomType(nameTarget,previous);
        setUpdate(id,newRoomType);
       
        String data[][] = getFurnitureParams();
        int size = cjtRoomType.size();
        int maxId = this.cjtRoomType.getCount();
View Full Code Here

     * Consultora del nombre de una sala.  
     * @param id Identificador de la sala.
     * @return Nombre de la sala.
     */
    public String getNameRoomType(int id) {
        RoomType newRoomType = this.cjtRoomType.getRoomType(id);
        return newRoomType.getName();
    }
View Full Code Here

     * Consultora de los muebles relacionados de una sala.  
     * @param id Identificador de la sala.
     * @return Lista de muebles relacionados.
     */
    public List<Integer> getFurnitureRoomType(int id) {
        RoomType newRoomType = this.cjtRoomType.getRoomType(id);
        return newRoomType.getRelatedFurniture();
    }
View Full Code Here

     * @param nameRoomType Nombre de la sala.
     * @param idList Lista de muebles relacionados.
     * @return '1' no se ha podido crear la sala, '0' se ha creado la sala con exito.
     */
    public boolean add(String nameRoomType,List<Integer> idList) {
        RoomType newRoomType;
        boolean err;
       
        err = this.checkName(nameRoomType);
        if(err == false){
            Collections.sort(idList);
            newRoomType = new RoomType(nameRoomType,idList);
            cjtRoomType.set(newRoomType);           
        }
        return err;   
    }
View Full Code Here

     * @param idTarget Identificador de la sala.
     * @param idFurn Identificador del mueble.
     * @return '1' si existe el mueble relacionado, '0' la sala no tiene este mueble relacionado.
     */
    public boolean checkRelated(int idTarget, int idFurn) {
        RoomType newRoomType = this.cjtRoomType.getRoomType(idTarget);
        List<Integer>list = newRoomType.getRelatedFurniture();
        for(Integer idRelated : list) {
            if(idRelated == idFurn){
                return true;
            }
        }
View Full Code Here

TOP

Related Classes of Modules.RoomType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.