view src/alice/datasegment/KeyCommand.java @ 100:b01fb5090e28 working

add default code to each case statements
author kazz <kazz@cr.ie.u-ryukyu.ac.jp>
date Thu, 28 Jun 2012 01:50:29 +0900
parents 1d4f2b72fb31
children
line wrap: on
line source

package alice.datasegment;

public class KeyCommand {
	
	DataSegmentKey key;
	Command cmd;
	
	public KeyCommand(DataSegmentKey key, Command cmd) {
		this.key = key;
		this.cmd = cmd;
	}
	
	public void runCommand() {
		key.runCommand(cmd);
	}
	
}