Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow named params to match with param enums in get() #285

Merged
merged 2 commits into from
Aug 9, 2023
Merged

Conversation

mchitre
Copy link
Member

@mchitre mchitre commented Aug 7, 2023

Fixes #284

After fix:

> node.nodeName
Barrackpore.local
> import org.arl.fjage.param.*
> req = new ParameterReq(node).get(new NamedParameter("nodeName"))
ParameterReq[nodeName:?]
> x = node.request(req)
ParameterRsp[nodeName:Barrackpore.local]
> x.get(org.arl.unet.nodeinfo.NodeInfoParam.nodeName)
Barrackpore.local
> x.get(new NamedParameter("nodeName"))
Barrackpore.local
> node.get(new NamedParameter("nodeName"))
Barrackpore.local
> req = new ParameterReq(node)
ParameterReq[]
> x = node.request(req)
ParameterRsp[address:99 origin:[D@10ef0353 canForward:true heading:null depth:null description*:Manages and maintains node information and attributes. nodeName:Barrackpore.local title*:Node information pitch:null speed:null time*:Tue Aug 08 15:48:44 SGT 2023 roll:null addressSize:8 turnRate:null location:[D@2911ab14 diveRate:null mobility:false]
> x.get(org.arl.unet.nodeinfo.NodeInfoParam.nodeName)
Barrackpore.local
> x.get(new NamedParameter("nodeName"))
Barrackpore.local

@mchitre mchitre requested a review from ettersi August 8, 2023 07:54
@mchitre mchitre requested a review from ettersi August 8, 2023 09:40
@mchitre mchitre merged commit bed4ee1 into master Aug 9, 2023
0 of 2 checks passed
@mchitre mchitre deleted the issue-284 branch August 9, 2023 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AgentID.get(NamedParameter) does not work
2 participants