changeset 265:41312b857f34

replace ReceiveLocalData.java
author sugi
date Tue, 13 Aug 2013 06:06:02 +0900
parents b4690114a0cd
children c0712e0b0a24
files src/alice/codesegment/InputDataSegment.java src/alice/codesegment/ReceiveLocalData.java src/alice/datasegment/ReceiveLocalData.java
diffstat 3 files changed, 56 insertions(+), 54 deletions(-) [+]
line wrap: on
line diff
--- a/src/alice/codesegment/InputDataSegment.java	Tue Aug 13 06:02:55 2013 +0900
+++ b/src/alice/codesegment/InputDataSegment.java	Tue Aug 13 06:06:02 2013 +0900
@@ -5,6 +5,7 @@
 import alice.datasegment.Command;
 import alice.datasegment.CommandType;
 import alice.datasegment.DataSegment;
+import alice.datasegment.ReceiveLocalData;
 import alice.datasegment.ReceiveRemoteData;
 import alice.datasegment.Receiver;
 
--- a/src/alice/codesegment/ReceiveLocalData.java	Tue Aug 13 06:02:55 2013 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,54 +0,0 @@
-package alice.codesegment;
-
-import java.io.IOException;
-
-import org.msgpack.type.ArrayValue;
-import org.msgpack.type.Value;
-
-import alice.datasegment.ReceiverData;
-
-public class ReceiveLocalData implements ReceiverData {
-	private Object obj;
-
-	public ReceiveLocalData(Object obj2) {
-		this.obj = obj2;
-	}
-
-	public String asString() {
-		return (String) obj;
-	}
-
-	public int asInteger() {
-		return (Integer) obj;
-	}
-
-	public Float asFloat() {
-		return (Float) obj;
-	}
-
-	public ArrayValue asArray(){
-		return (ArrayValue) obj;
-	}
-	
-	@SuppressWarnings("unchecked")
-	public <T> T asClass(Class<T> clazz) {
-		return (T) obj;
-
-	}
-
-	@Override
-	public Value getVal() {
-		try {
-			return SingletonMessage.getInstance().unconvert(obj);
-		} catch (IOException e) {
-			e.printStackTrace();
-		}
-		return null;
-	}
-
-	@Override
-	public Object getObj() {
-		return obj;
-	}
-
-}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/alice/datasegment/ReceiveLocalData.java	Tue Aug 13 06:06:02 2013 +0900
@@ -0,0 +1,55 @@
+package alice.datasegment;
+
+import java.io.IOException;
+
+import org.msgpack.type.ArrayValue;
+import org.msgpack.type.Value;
+
+import alice.codesegment.SingletonMessage;
+import alice.datasegment.ReceiverData;
+
+public class ReceiveLocalData implements ReceiverData {
+	private Object obj;
+
+	public ReceiveLocalData(Object obj2) {
+		this.obj = obj2;
+	}
+
+	public String asString() {
+		return (String) obj;
+	}
+
+	public int asInteger() {
+		return (Integer) obj;
+	}
+
+	public Float asFloat() {
+		return (Float) obj;
+	}
+
+	public ArrayValue asArray(){
+		return (ArrayValue) obj;
+	}
+	
+	@SuppressWarnings("unchecked")
+	public <T> T asClass(Class<T> clazz) {
+		return (T) obj;
+
+	}
+
+	@Override
+	public Value getVal() {
+		try {
+			return SingletonMessage.getInstance().unconvert(obj);
+		} catch (IOException e) {
+			e.printStackTrace();
+		}
+		return null;
+	}
+
+	@Override
+	public Object getObj() {
+		return obj;
+	}
+
+}