From: "David C. Hoos, Sr." <david.c.hoos.sr@ada95.com>
To: "Ed Trubia" <edward.b.trubia@lmco.com>
Cc: comp.lang.ada@ada-france.org
Subject: Re: Contrained ada type in java
Date: Wed, 10 Dec 2003 21:56:10 -0600
Date: 2003-12-10T21:56:10-06:00 [thread overview]
Message-ID: <mailman.79.1071114891.31149.comp.lang.ada@ada-france.org> (raw)
In-Reply-To: br860v$pes$1@email.tds-eagan.lmco.com
This is an enumerated type, a feature of many
languages, but not of Java.
There are a number of ways to deal with this in Java
See the following web site for some suggestions:
http://gethelp.devx.com/techtips/java_pro/10MinuteSolutions/10min0600.asp
Of course, the best solution is to leave the program in Ada!
----- Original Message -----
From: "Ed Trubia" <edward.b.trubia@lmco.com>
Newsgroups: comp.lang.ada
To: <comp.lang.ada@ada-france.org>
Sent: December 10, 2003 4:17 PM
Subject: Contrained ada type in java
> Have the following type that applies contraints. How could this be easily
> coded in Java
>
> type ET_ACTIVE_PORT_CONFIGURATION is
> ( HDX_TX1_RX1,
> HDX_TX2_RX2,
> HDX_TX1_RX2,
> HDX_TX2_RX1,
> FDX_TX1_RX2,
> FDX_TX2_RX1);
>
> for ET_ACTIVE_PORT_CONFIGURATION use
> ( HDX_TX1_RX1 => 62,
> HDX_TX2_RX2 => 23,
> HDX_TX1_RX2 => 34,
> HDX_TX2_RX1 => 45,
> FDX_TX1_RX2 => 54,
> FDX_TX2_RX1 => 61);
>
>
> _______________________________________________
> comp.lang.ada mailing list
> comp.lang.ada@ada-france.org
> http://www.ada-france.org/mailman/listinfo/comp.lang.ada
>
>
next prev parent reply other threads:[~2003-12-11 3:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-10 22:17 Contrained ada type in java Ed Trubia
2003-12-11 3:56 ` David C. Hoos, Sr. [this message]
2003-12-11 17:56 ` Jeffrey Carter
2003-12-17 5:56 ` Craig Carey
2003-12-17 14:54 ` No Spam
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox