declareInlets

Aug 18, 2011 at 11:44pm

declareInlets

What does it mean if there is a number instead of a DataType in an inlet declaration ? Like this:

declareInlets(new int[] { 7 });

sorry, I’m newbie

thanks

#58541
Aug 22, 2011 at 10:45pm

I imagine you are used to seeing things like DataTypes.INT instead of a number. All those DataTypes.* values are just static integers created as an easy way of referencing the various types. So any time you are using DataTypes.INT you are actually supplying the number 1.

To list them all:

DataTypes.ALL == 15
DataTypes.ANYTHING == 15
DataTypes.FLOAT == 2
DataTypes.INT == 1
DataTypes.LIST == 4
DataTypes.MESSAGE == 8

I’m not sure what 7 would represent.

#210370
Aug 24, 2011 at 12:28am

Thank you. The 7 was just a random number.

#210371

You must be logged in to reply to this topic.