差分発生行の前後
無視リスト:
更新日時:
2010/05/11 20:15:55 (2 年 前)
更新者:
h
ログメッセージ:

refs #2 #8 #9 #7 #6
現状のソースをコミット。一部完了。一部未完了。
関連づいてない完了チケットのチェンジセットもまとめて。
パッケージ階層も大幅に変更。

パス:
trunk/src/org/rayflood/mikuvat/io/vsq
ファイル:
1 追加
1 移動

凡例:

変更なし
追加
削除
  • trunk/src/org/rayflood/mikuvat/io/vsq/EventBPTime.java

    r2 r4  
    1 package org.rayflood.mikuvat.io; 
    2  
    3 import static org.rayflood.mikuvat.io.VSQDecoder.adjustMaxMin; 
     1package org.rayflood.mikuvat.io.vsq; 
     2 
     3import static org.rayflood.mikuvat.Utilities.adjustMaxMin; 
    44 
    55import java.io.File; 
     6import java.io.FileNotFoundException; 
     7import java.io.IOException; 
    68import java.util.ArrayList; 
    79import java.util.List; 
    810 
    9 public class EventBPTime extends ImmutableObject{ 
     11import org.rayflood.mikuvat.io.BaseObject; 
     12import org.rayflood.mikuvat.io.InvalidBaseObjectException; 
     13 
     14public class EventBPTime extends BaseObject{ 
    1015        private static final long serialVersionUID = 817431318781476681L; 
    1116        public static final int PITCHBEND_MAX = 8191; 
     
    144149                } 
    145150 
    146                 StringBuffer sb = new StringBuffer(); 
     151                StringBuilder sb = new StringBuilder(); 
    147152                sb.append("EventBPTime={"); 
    148153                if(!sl.isEmpty()){ 
     
    156161        } 
    157162 
    158         public boolean isReadied(){ 
    159                 return !hasEvent() || getEvent().isReadied(); 
    160         } 
    161  
    162         public int compareTo(ImmutableObject obj){ 
     163        public boolean validate() throws InvalidBaseObjectException{ 
     164                boolean ready = true; 
     165                ready &= !hasEvent() || getEvent().validate(); 
     166                if(!ready){ 
     167                        throw new InvalidBaseObjectException(this); 
     168                } 
     169                return ready; 
     170        } 
     171 
     172        public int compareTo(BaseObject obj){ 
    163173                EventBPTime eventBPTime = (EventBPTime)obj; 
    164174                int c = compare(getDynamics(), eventBPTime.getDynamics()); 
     
    201211        } 
    202212 
    203         public EventBPTime over(Object obj, boolean fill, boolean has){ 
     213        public EventBPTime over(BaseObject obj, boolean fill, boolean has){ 
    204214                EventBPTime eventBPTime = ((EventBPTime)obj).clone(); 
    205215                if(eventBPTime.hasEvent()){ 
     
    889899        } 
    890900 
    891         public static EventBPTime load(String file) throws Exception{ 
    892                 return (EventBPTime)ImmutableObject.load(file); 
    893         } 
    894  
    895         public static EventBPTime load(File file) throws Exception{ 
    896                 return (EventBPTime)ImmutableObject.load(file); 
    897         } 
    898  
    899         public void store(String file) throws Exception{ 
     901        public static EventBPTime load(String file) throws FileNotFoundException, IOException, ClassNotFoundException{ 
     902                return (EventBPTime)BaseObject.load(file); 
     903        } 
     904 
     905        public static EventBPTime load(File file) throws FileNotFoundException, IOException, ClassNotFoundException{ 
     906                return (EventBPTime)BaseObject.load(file); 
     907        } 
     908 
     909        public void store(String file) throws FileNotFoundException, IOException{ 
    900910                super.store(file); 
    901911        } 
    902912 
    903         public void store(File file) throws Exception{ 
     913        public void store(File file) throws FileNotFoundException, IOException{ 
    904914                super.store(file); 
    905915        } 
    906916 
    907         public static EventBPTime unzip(String file) throws Exception{ 
    908                 return (EventBPTime)ImmutableObject.unzip(file); 
    909         } 
    910  
    911         public static EventBPTime unzip(File file) throws Exception{ 
    912                 return (EventBPTime)ImmutableObject.unzip(file); 
    913         } 
    914  
    915         public void zip(String file) throws Exception{ 
     917        public static EventBPTime unzip(String file) throws IOException, ClassNotFoundException{ 
     918                return (EventBPTime)BaseObject.unzip(file); 
     919        } 
     920 
     921        public static EventBPTime unzip(File file) throws IOException, ClassNotFoundException{ 
     922                return (EventBPTime)BaseObject.unzip(file); 
     923        } 
     924 
     925        public void zip(String file) throws IOException{ 
    916926                super.zip(file); 
    917927        } 
    918928 
    919         public void zip(File file) throws Exception{ 
     929        public void zip(File file) throws IOException{ 
    920930                super.zip(file); 
    921931        }