Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
problem
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Arda Goknil  
View profile  
 More options Oct 31 2007, 10:18 am
From: "Arda Goknil" <ardagok...@gmail.com>
Date: Wed, 31 Oct 2007 15:18:19 +0100
Local: Wed, Oct 31 2007 10:18 am
Subject: problem

Hi,
I have a transformation code written in Tefkat.

Rule AgentServiceInteraction
FORALL Agent ag1 {
    type: "Semantic Web Agent";
    plays: Role role1 {
           type: "Domain Role";
    };
    applies: Plan pln {
           type: "Semantic Service Executor Plan";
    };
  },

  Agent ag2 {
    type: "Semantic Service Matchmaker Agent";
    plays: Role role2 {
          type: "Registry Role";
    };
    applies: Plan pln;
  }

 },

MAKE JClass agJ1 FROM op1(ag1) {
      name: ag1.type;
      associatedClass: plnJ1;
      associatedClass: plnJ2;
  },
  JClass plnJ1 FROM op2(pln) {
      name: join("_", pln.name, pln.type);
  },
  JClass plnJ2 FROM op2(pln) {
      name: join("_", pln.name, "Semantic Helper Plan");
  },
  JClass agJ2 FROM op2(pln) {
      associatedClass: plnJ1;
      associatedClass: plnJ2;
  };
;

In this rule I want to match one Sementic Web Agent and one Semantic Service
Matchmaker Agent which reference the same Plan instances (Semantic Service
Executor Class). I am not sure the code line (applies: Plan pln) in "Agent
ag1" and the code line (applies: Plan pln) in "Agent ag2" matche the same
Plan instances. Is it possible to match the Plan instances for Semantic
Service Matchmaker Agent which do not reference to Semantic Web Agent?
Regards,

Arda


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David  
View profile  
 More options Nov 1 2007, 4:01 am
From: David <david.hearn...@gmail.com>
Date: Thu, 01 Nov 2007 01:01:51 -0700
Local: Thurs, Nov 1 2007 4:01 am
Subject: Re: problem
Hi Arda,

You are right; as written, this rule will match (Semantic Web and
Semantic Service Executor) Agents, ag1 and ag2, whose "applies"
features reference a common Plan, pln, which is what you want.

If you want to match the other plans of ag2 that are not referred to
by ag1, then you could use:

RULE AgentServiceInteraction
FORALL Agent ag1 { ... },
       Agent ag2 { ... }
WHERE  ag2.applies = otherPlan AND NOT (ag1.applies = otherPlan)
MAKE   ...
;

However, I'm not completely sure what you mean by "the Plan instances
for Semantic Service Matchmaker Agent which do not reference to
Semantic Web Agent".  Do you mean:
* Plan instances of the particular Semantic Service Matchmaker Agent
(ag2) that are not referred to by the particular Semantic Web Agent
(ag1), or
* Plan instances of the particular Semantic Service Matchmaker Agent
(ag2) that are not referred to by any Semantic Web Agent, or
* Plan instances of any Semantic Service Matchmaker Agent that are not
referred to by the particular Semantic Web Agent (ag1), or
* Plan instances of any Semantic Service Matchmaker Agent that are not
referred to by any Semantic Web Agent ?
All of these options are possible.

hope that helps,

-David

On 1 Nov, 00:18, "Arda Goknil" <ardagok...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ardagoknil@gmail.com  
View profile  
 More options Nov 4 2007, 12:33 pm
From: "ardagok...@gmail.com" <ardagok...@gmail.com>
Date: Sun, 04 Nov 2007 09:33:45 -0800
Local: Sun, Nov 4 2007 12:33 pm
Subject: Re: problem
Hi David,
Thank you. That helps a lot.

Arda

On Nov 1, 9:01 am, David <david.hearn...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google