1 2 package SOFA.SOFAnode.Made.TIR.Impl; 3 import java.rmi.RemoteException ; 4 import java.rmi.server.UnicastRemoteObject ; 5 6 import SOFA.SOFAnode.Made.TIR.DefinitionKind; 7 import SOFA.SOFAnode.Made.TIR.PrimitiveDef; 8 import SOFA.SOFAnode.Made.TIR.PrimitiveKind; 9 import SOFA.SOFAnode.Made.TIR.StateKind; 10 11 public class PrimitiveDefImpl extends UnicastRemoteObject implements PrimitiveDef { 12 DefinitionKindImpl defKindImpl; 13 PrimitiveKindImpl primKindImpl; 14 StateKindImpl stKindImpl; 15 16 public PrimitiveDefImpl(int p_kind, int state) throws RemoteException { 17 defKindImpl = new DefinitionKindImpl(DefinitionKind.dk_Primitive); 18 primKindImpl = new PrimitiveKindImpl(p_kind); 19 stKindImpl = new StateKindImpl(state); 20 } 21 22 23 public DefinitionKind get_def_kind() throws RemoteException { 24 return (DefinitionKind) defKindImpl; 25 } 26 27 28 public PrimitiveKind kind() throws RemoteException { 29 return (PrimitiveKind) primKindImpl; 30 } 31 32 33 public StateKind get_state() throws RemoteException { 34 return (StateKind) stKindImpl; 35 } 36 } 37 | Popular Tags |